Changeset View
Changeset View
Standalone View
Standalone View
core/units/phrases/phrases_event_handler.php
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Line(s) | |||||
$config->setFields($fields); | $config->setFields($fields); | ||||
} | } | ||||
$ml_helper = $this->Application->recallObject('kMultiLanguageHelper'); | $ml_helper = $this->Application->recallObject('kMultiLanguageHelper'); | ||||
/* @var $ml_helper kMultiLanguageHelper */ | /* @var $ml_helper kMultiLanguageHelper */ | ||||
$ml_helper->replaceMLCalculatedFields($event); | $ml_helper->replaceMLCalculatedFields($event); | ||||
if ( $this->Application->GetVar('regional') ) { | if ( $this->Application->isWebRequest() && $this->Application->GetVar('regional') ) { | ||||
$event->getUnitConfig()->setPopulateMlFields(true); | $event->getUnitConfig()->setPopulateMlFields(true); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Saves changes & changes language | * Saves changes & changes language | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |