X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=www%2Findex.php;h=e181d08be794cd052681d5b53582bc9fc72a37c0;hb=refs%2Ftags%2F2016-04-05;hp=340401d6183c44a1a27e3df26008d365e9fa58a1;hpb=6eac4c1286d9beeb7d1f1ef9cd26686511da533e;p=readifood.git diff --git a/www/index.php b/www/index.php index 340401d..e181d08 100644 --- a/www/index.php +++ b/www/index.php @@ -13,7 +13,7 @@ Propel::init("$propel_root/build/conf/$propel_project-conf.php"); set_include_path(join(PATH_SEPARATOR, array(join(DIRECTORY_SEPARATOR, array($propel_root, "build", "classes")), get_include_path()))); - $request = preg_replace('!^/branches/[^/]+/!', "", $_SERVER['REQUEST_URI']); + $request = preg_replace('!^/branches/[^/]+/!', "", $_SERVER['SCRIPT_URL']); $request = preg_replace('!^/+!', "", $request); $request = preg_replace('!/+$!', "", $request);