Show
Ignore:
Timestamp:
06/06/10 02:49:52 (2 years ago)
Author:
ort
Message:

fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/page/classes/actions/ActionPage.class.php

    r933 r934  
    258258                $oPage->setTitle(getRequest('page_title')); 
    259259                $oPage->setUrl(getRequest('page_url')); 
    260                 $oPage->setSort(getRequest('page_sort')); 
     260                if (getRequest('page_sort')) { 
     261                        $oPage->setSort(getRequest('page_sort')); 
     262                } else { 
     263                        $oPage->setSort($this->PluginPage_Page_GetMaxSortByPid($oPage->getPid())+1); 
     264                } 
    261265                /** 
    262266                 * Добавляем страницу