Файл: system/controllers/admin/actions/ctypes_datasets_reorder.php
Строк: 15
<?php
class actionAdminCtypesDatasetsReorder extends cmsAction {
public function run(){
$items = $this->request->get('items', array());
if (!$items){ cmsCore::error404(); }
$this->model_content->reorderContentDatasets($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();
}
}