Index: branches/5.2.x/units/affiliates/affiliates_config.php =================================================================== diff -u -N -r15009 -r15030 --- branches/5.2.x/units/affiliates/affiliates_config.php (.../affiliates_config.php) (revision 15009) +++ branches/5.2.x/units/affiliates/affiliates_config.php (.../affiliates_config.php) (revision 15030) @@ -1,6 +1,6 @@ 'register', 'DoEvent' => 'OnRegisterAffiliate', ), + + Array( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '', + 'HookToEvent' => Array('OnStartup'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnResetStatistics', + ), + + Array( + 'Mode' => hAFTER, + 'Conditional' => false, + 'HookToPrefix' => 'adm', + 'HookToSpecial' => '', + 'HookToEvent' => Array('OnStartup'), + 'DoPrefix' => '', + 'DoSpecial' => '', + 'DoEvent' => 'OnStoreAffiliate', + ), ), 'AggregateTags' => Array( Array( @@ -85,11 +107,6 @@ 5 => 'mode', ), - 'ScheduledTasks' => Array( - 'store_affiliate' => Array('EventName' => 'OnStoreAffiliate', 'RunInterval' => 0, 'Type' => reBEFORE), - 'reset_affiliate_stats' => Array('EventName' => 'OnResetStatistics', 'RunInterval' => 0, 'Type' => reBEFORE), - ), - 'IDField' => 'AffiliateId', 'StatusField' => Array('Status'), // field, that is affected by Approve/Decline events