Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/configuration/configuration_event_handler.php
Show First 20 Lines • Show All 376 Lines • ▼ Show 20 Line(s) | |||||
// root category differs from one in db | // root category differs from one in db | ||||
$fields_hash = Array ('RootCat' => $new_category_id); | $fields_hash = Array ('RootCat' => $new_category_id); | ||||
$this->Conn->doUpdate($fields_hash, TABLE_PREFIX . 'Modules', 'Name = ' . $this->Conn->qstr($module)); | $this->Conn->doUpdate($fields_hash, TABLE_PREFIX . 'Modules', 'Name = ' . $this->Conn->qstr($module)); | ||||
} | } | ||||
} | } | ||||
// reset cache | // reset cache | ||||
$changed = $this->Application->GetVar($event->getPrefixSpecial() . '_changed', Array ()); | $changed = $this->Application->GetVar($event->getPrefixSpecial() . '_changed', Array ()); | ||||
$require_refresh = Array ('AdvancedUserManagement', 'Site_Name', 'AdminConsoleInterface', 'UsePopups'); | $require_refresh = Array ('AdvancedUserManagement', 'Site_Name', 'AdminConsoleInterface', 'UsePopups', 'Catalog_PreselectModuleTab'); | ||||
$refresh_sections = array_intersect($require_refresh, $changed); | $refresh_sections = array_intersect($require_refresh, $changed); | ||||
$require_full_refresh = Array ('Site_Name', 'AdminConsoleInterface'); | $require_full_refresh = Array ('Site_Name', 'AdminConsoleInterface'); | ||||
if ( array_intersect($require_full_refresh, $changed) ) { | if ( array_intersect($require_full_refresh, $changed) ) { | ||||
$event->SetRedirectParam('refresh_all', 1); | $event->SetRedirectParam('refresh_all', 1); | ||||
} | } | ||||
elseif ( $refresh_sections ) { | elseif ( $refresh_sections ) { | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |