normalize ./ away

This commit is contained in:
Ralf Becker 2013-11-11 08:19:00 +00:00
parent f975e93677
commit d7a1b12d96

View File

@ -279,7 +279,8 @@ class egw_include_mgr
private function translate_params($package, $file, $app)
{
if ($package[0] == '/' && (is_readable(EGW_SERVER_ROOT.(parse_url($path = $package, PHP_URL_PATH))) ||
is_readable(EGW_SERVER_ROOT.($path = $package))) ||
is_readable(EGW_SERVER_ROOT.($path = $package))) ||
$package == '.' && is_readable(EGW_SERVER_ROOT.($path="/$app/js/$file.js")) ||
is_readable(EGW_SERVER_ROOT.($path="/$app/js/$package/$file.js")) ||
$app != 'phpgwapi' && is_readable(EGW_SERVER_ROOT.($path="/phpgwapi/js/$package/$file.js")))
{