Файл: system/controllers/geo/backend/actions/countries_reorder.php
Строк: 12
<?php
class actionGeoCountriesReorder extends cmsAction {
public function run() {
$items = $this->request->get('items', array());
if (!$items) { cmsCore::error404();}
$this->model->reorderByList('geo_countries', $items);
if ($this->request->isAjax()){
return $this->cms_template->renderJSON(array(
'error' => false,
'success_text' => LANG_CP_ORDER_SUCCESS
));
}
cmsUser::addSessionMessage(LANG_CP_ORDER_SUCCESS, 'success');
$this->redirectBack();
}
}