diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index 685d9ea..6ee74b4 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -393,7 +393,7 @@ class KTInit { // {{{ guessRootUrl() function guessRootUrl() { - $urlpath = $_SERVER['SCRIPT_NAME']; + $urlpath = str_replace(KT_DIR, '', $_SERVER['SCRIPT_NAME']); $bFound = false; $rootUrl = ''; while ($urlpath) { @@ -655,4 +655,4 @@ require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); $GLOBALS['main'] =new KTPage(); -?> \ No newline at end of file +?>