Changeset View
Changeset View
Standalone View
Standalone View
core/units/admin/admin_events_handler.php
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | |||||
protected function OnResetParsedData(kEvent $event) | protected function OnResetParsedData(kEvent $event) | ||||
{ | { | ||||
if ( $this->Application->GetVar('ajax') == 'yes' ) { | if ( $this->Application->GetVar('ajax') == 'yes' ) { | ||||
$event->status = kEvent::erSTOP; | $event->status = kEvent::erSTOP; | ||||
} | } | ||||
$this->Application->DeleteUnitCache(); | $this->Application->DeleteUnitCache(); | ||||
if ( $this->Application->GetVar('validate_configs') ) { | if ( $this->Application->isWebRequest() && $this->Application->GetVar('validate_configs') ) { | ||||
$event->SetRedirectParam('validate_configs', 1); | $event->SetRedirectParam('validate_configs', 1); | ||||
} | } | ||||
$event->SetRedirectParam('action_completed', 1); | $event->SetRedirectParam('action_completed', 1); | ||||
} | } | ||||
/** | /** | ||||
* Resets memory cache | * Resets memory cache | ||||
▲ Show 20 Lines • Show All 1213 Lines • Show Last 20 Lines |