Commit 5e8058250aef63dbc5a7866152df7afc11110d37
1 parent
710b533b
KTS-4153 - All scheduled tasks are failing to run on the new stack.
Reviewed By: Megan Watson
Showing
1 changed file
with
2 additions
and
2 deletions
config/dmsDefaults.php
| @@ -393,7 +393,7 @@ class KTInit { | @@ -393,7 +393,7 @@ class KTInit { | ||
| 393 | 393 | ||
| 394 | // {{{ guessRootUrl() | 394 | // {{{ guessRootUrl() |
| 395 | function guessRootUrl() { | 395 | function guessRootUrl() { |
| 396 | - $urlpath = $_SERVER['SCRIPT_NAME']; | 396 | + $urlpath = str_replace(KT_DIR, '', $_SERVER['SCRIPT_NAME']); |
| 397 | $bFound = false; | 397 | $bFound = false; |
| 398 | $rootUrl = ''; | 398 | $rootUrl = ''; |
| 399 | while ($urlpath) { | 399 | while ($urlpath) { |
| @@ -655,4 +655,4 @@ require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); | @@ -655,4 +655,4 @@ require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); | ||
| 655 | $GLOBALS['main'] =new KTPage(); | 655 | $GLOBALS['main'] =new KTPage(); |
| 656 | 656 | ||
| 657 | 657 | ||
| 658 | -?> | ||
| 659 | \ No newline at end of file | 658 | \ No newline at end of file |
| 659 | +?> |