Index: branches/5.0.x/core/units/sections/site_config_eh.php =================================================================== diff -u -r12265 -r12277 --- branches/5.0.x/core/units/sections/site_config_eh.php (.../site_config_eh.php) (revision 12265) +++ branches/5.0.x/core/units/sections/site_config_eh.php (.../site_config_eh.php) (revision 12277) @@ -1,6 +1,6 @@ Application->ConfigValue('AdminConsoleInterface'); - $base_path = FULL_PATH . ADMIN_DIRECTORY . '/system_presets/' . $preset_name; + define('SYSTEM_PRESET_PATH', FULL_PATH . ADMIN_DIRECTORY . DIRECTORY_SEPARATOR . 'system_presets' . DIRECTORY_SEPARATOR . $preset_name); } $prefix_file = basename( $this->Application->UnitConfigReader->getPrefixFile($event->MasterEvent->Prefix) ); $cut_pos = strrpos($prefix_file, '_config.php'); $prefix_file = substr($prefix_file, 0, $cut_pos) . '_' . $event->MasterEvent->Prefix . '.php'; - if (file_exists($base_path . '/' . $prefix_file)) { + if (file_exists(SYSTEM_PRESET_PATH . DIRECTORY_SEPARATOR . $prefix_file)) { /*if ($this->Application->isDebugMode()) { $this->Application->Debugger->appendHTML('Using site config: ' . $prefix_file); }*/ - require $base_path . '/' . $prefix_file; + require SYSTEM_PRESET_PATH . DIRECTORY_SEPARATOR . $prefix_file; } else { /*if ($this->Application->isDebugMode()) {