Index: branches/5.2.x/core/kernel/startup.php
===================================================================
diff -u -N -r14609 -r14692
--- branches/5.2.x/core/kernel/startup.php (.../startup.php) (revision 14609)
+++ branches/5.2.x/core/kernel/startup.php (.../startup.php) (revision 14692)
@@ -1,6 +1,6 @@
';
echo 'Please use the installation script to fix the problem.
';
- echo 'Go to installation script
';
+
+ $base_path = rtrim(preg_replace('/'.preg_quote(rtrim($admin_directory, '/'), '/').'$/', '', str_replace('\\', '/', dirname($_SERVER['PHP_SELF']))), '/');
+ echo 'Go to installation script
';
flush();
exit;
}
+ // variable WebsitePath is auto-detected once during installation/upgrade
+ define('BASE_PATH', $vars['WebsitePath']);
+
define('APPLICATION_CLASS', isset($vars['ApplicationClass']) ? $vars['ApplicationClass'] : 'kApplication');
define('APPLICATION_PATH', isset($vars['ApplicationPath']) ? $vars['ApplicationPath'] : '/core/kernel/application.php');