Index: branches/5.2.x/units/articles/articles_config.php =================================================================== diff -u -N -r15011 -r15032 --- branches/5.2.x/units/articles/articles_config.php (.../articles_config.php) (revision 15011) +++ branches/5.2.x/units/articles/articles_config.php (.../articles_config.php) (revision 15032) @@ -1,6 +1,6 @@ '*', 'DoEvent' => 'OnCloneSubItem', ), + + Array( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '', + 'HookToEvent' => Array('OnStartup'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnUpdateRSSArticles', + ), ), 'CatalogItem' => true, @@ -131,10 +142,6 @@ 5 => 'mode', ), - 'ScheduledTasks' => Array ( - 'rss_category_update' => Array ('EventName' => 'OnUpdateRSSAtricles', 'RunInterval' => 0, 'Type' => reBEFORE), - ), - 'IDField' => 'NewsId', 'StatusField' => Array ('Status'), // field, that is affected by Approve/Decline events Index: branches/5.2.x/units/articles/articles_event_handler.php =================================================================== diff -u -N -r14988 -r15032 --- branches/5.2.x/units/articles/articles_event_handler.php (.../articles_event_handler.php) (revision 14988) +++ branches/5.2.x/units/articles/articles_event_handler.php (.../articles_event_handler.php) (revision 15032) @@ -1,6 +1,6 @@ Application->getUnitOption('c', 'TableName'); $custom_table = $this->Application->getUnitOption('c-cdata', 'TableName'); @@ -125,8 +125,10 @@ (LENGTH(cd.'.$article_custom_fields['RssOriginalURL'].') > 0)'; $article_ids = $this->Conn->GetCol($sql); if ($article_ids) { - $temp =& $this->Application->recallObject($event->getPrefixSpecial().'_TempHandler', 'kTempTablesHandler'); - $temp->DeleteItems($event->Prefix, $event->Special, $article_ids); + $temp_handler =& $this->Application->recallObject($event->getPrefixSpecial().'_TempHandler', 'kTempTablesHandler'); + /* @var $temp_handler kTempTablesHandler */ + + $temp_handler->DeleteItems($event->Prefix, $event->Special, $article_ids); } $sql = 'UPDATE '.$custom_table.'