Index: trunk/kernel/include/modules.php =================================================================== diff -u -r3983 -r4698 --- trunk/kernel/include/modules.php (.../modules.php) (revision 3983) +++ trunk/kernel/include/modules.php (.../modules.php) (revision 4698) @@ -962,10 +962,10 @@ { $var_to_global = $key.'_var_list'; global $$var_to_global; - - if( $FrontEnd==0 || !is_numeric($FrontEnd) || $FrontEnd==2) - { - $rootURL="http://".ThisDomain().$objConfig->Get("Site_Path"); + + $application =& kApplication::Instance(); // just to sure, that object is here in all actions + if($FrontEnd == 0 || !is_numeric($FrontEnd) || $FrontEnd == 2) { + $rootURL = 'http://'.ThisDomain().$objConfig->Get('Site_Path'); $admin = $objConfig->Get("AdminDirectory"); if( !strlen($admin) ) $admin = "admin"; $adminURL = $rootURL.$admin;