Вход Регистрация
Файл: system/controllers/geo/backend/actions/cities_reorder.php
Строк: 10
<?php
class actionGeoCitiesReorder extends cmsAction {

    public function 
run() {

        
$items $this->request->get('items', array());

        if (!
$items) { cmsCore::error404();}

        
$this->model->reorderByList('geo_cities'$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();

    }

}
Онлайн: 2
Реклама