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);