Index: branches/5.2.x/core/units/themes/themes_eh.php =================================================================== diff -u -N -r14989 -r15065 --- branches/5.2.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 14989) +++ branches/5.2.x/core/units/themes/themes_eh.php (.../themes_eh.php) (revision 15065) @@ -1,6 +1,6 @@ Application->recallObject($event->Prefix.'.-item', null, Array('skip_autoload' => true, 'live_table' => true)); + parent::OnAfterCopyToLive($event); + + $object =& $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true, 'live_table' => true)); /* @var $object kDBItem */ $object->Load($event->getEventParam('id')); - if ($object->GetDBField('PrimaryTheme')) { + if ( $object->GetDBField('PrimaryTheme') ) { $this->setPrimary($event->getEventParam('id')); } } @@ -116,7 +120,7 @@ * @return void * @access protected */ - protected function OnSave(&$event) + protected function OnSave(kEvent &$event) { parent::OnSave($event);