From fd1e819445d252a5454b5875410ade5b67aafffd Mon Sep 17 00:00:00 2001 From: Luke Carlson Date: Thu, 7 Aug 2014 14:07:00 -0400 Subject: [PATCH] changed base path when clean_urls is false --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 3b5ca09..0373ea2 100644 --- a/index.php +++ b/index.php @@ -90,7 +90,9 @@ if(isset($argv)){ exit(); } require_once(dirname( __FILE__)."/libs/live.php"); -$base_path = str_replace("/index.php", "", $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); +$server_base = $_SERVER['HTTP_HOST']; +if (!$options['clean_urls']) $server_base .= $_SERVER['PHP_SELF']; +$base_path = str_replace("/index.php", "", $server_base); define("CLI", FALSE); build_tree(); $remove = array($base_path . '/');