Index: trunk/core/kernel/constants.php =================================================================== diff -u --- trunk/core/kernel/constants.php (revision 0) +++ trunk/core/kernel/constants.php (revision 6652) @@ -0,0 +1,38 @@ +BaseURL().'kernel/admin_templates/img/spacer.gif'; + define('SPACER_URL', $spacer_url); + + if (!$application->IsAdmin()) { + // don't show debugger buttons on front (if not overrided in "debug.php") + safeDefine('DBG_TOOLBAR_BUTTONS', 0); + } +?> \ No newline at end of file Index: trunk/core/kernel/application.php =================================================================== diff -u -r6647 -r6652 --- trunk/core/kernel/application.php (.../application.php) (revision 6647) +++ trunk/core/kernel/application.php (.../application.php) (revision 6652) @@ -598,6 +598,9 @@ function registerModuleConstants() { if (!$this->ModuleInfo) return false; + if (file_exists(KERNEL_PATH.'/constants.php')) { + k4_include_once(KERNEL_PATH.'/constants.php'); + } foreach($this->ModuleInfo as $module_name => $module_info) {