mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-17 08:18:18 +03:00
фикс при добавлении статической страницы
This commit is contained in:
parent
25950a040c
commit
604f238574
|
@ -24,7 +24,6 @@ class ActionPage extends Action {
|
|||
protected $aBadPageUrl=array('admin');
|
||||
|
||||
public function Init() {
|
||||
|
||||
}
|
||||
/**
|
||||
* Регистрируем евенты
|
||||
|
@ -104,8 +103,8 @@ class ActionPage extends Action {
|
|||
* Обработка создания новой странички
|
||||
*/
|
||||
if (getRequest('submit_page_save')) {
|
||||
if (!getRequest('page_id')) {
|
||||
$this->SubmitAddPage();
|
||||
if (!getRequest('page_id')) {
|
||||
$this->SubmitAddPage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
@ -235,7 +234,7 @@ class ActionPage extends Action {
|
|||
$oPage->setUrl(getRequest('page_url'));
|
||||
/**
|
||||
* Добавляем страницу
|
||||
*/
|
||||
*/
|
||||
if ($this->Page_AddPage($oPage)) {
|
||||
$this->Message_AddNotice('Новая страница добавлена');
|
||||
$this->SetParam(0,null);
|
||||
|
|
|
@ -40,7 +40,8 @@ class Page extends Module {
|
|||
* @return unknown
|
||||
*/
|
||||
public function AddPage(PageEntity_Page $oPage) {
|
||||
if ($this->oMapper->AddPage($oPage)) {
|
||||
if ($sId=$this->oMapper->AddPage($oPage)) {
|
||||
$oPage->setId($sId);
|
||||
//чистим зависимые кеши
|
||||
$this->Cache_Clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG,array('page_change',"page_change_{$oPage->getId()}","page_change_urlfull_{$oPage->getUrlFull()}"));
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue