Changeset View
Changeset View
Standalone View
Standalone View
core/units/categories/categories_event_handler.php
Show First 20 Lines • Show All 1775 Lines • ▼ Show 20 Line(s) | |||||
$real_t = $page->GetDBField('CachedTemplate'); | $real_t = $page->GetDBField('CachedTemplate'); | ||||
$this->Application->SetVar('m_cat_id', $page->GetDBField('CategoryId')); | $this->Application->SetVar('m_cat_id', $page->GetDBField('CategoryId')); | ||||
if ( $page->GetDBField('FormId') ) { | if ( $page->GetDBField('FormId') ) { | ||||
$this->Application->SetVar('form_id', $page->GetDBField('FormId')); | $this->Application->SetVar('form_id', $page->GetDBField('FormId')); | ||||
} | } | ||||
} | } | ||||
else { | else { | ||||
$not_found = $this->Application->ConfigValue('ErrorTemplate'); | $not_found = $this->Application->ConfigValue('NotFoundErrorTemplate'); | ||||
$real_t = $not_found ? $not_found : 'error_notfound'; | $real_t = $not_found ? $not_found : 'error_notfound'; | ||||
$themes_helper = $this->Application->recallObject('ThemesHelper'); | $themes_helper = $this->Application->recallObject('ThemesHelper'); | ||||
/* @var $themes_helper kThemesHelper */ | /* @var $themes_helper kThemesHelper */ | ||||
$theme_id = $this->Application->GetVar('m_theme'); | $theme_id = $this->Application->GetVar('m_theme'); | ||||
$category_id = $themes_helper->getPageByTemplate($real_t, $theme_id); | $category_id = $themes_helper->getPageByTemplate($real_t, $theme_id); | ||||
$this->Application->SetVar('m_cat_id', $category_id); | $this->Application->SetVar('m_cat_id', $category_id); | ||||
▲ Show 20 Lines • Show All 1112 Lines • Show Last 20 Lines |