Commit d14c3d73 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files
parents d578386e 945071cf
......@@ -1453,10 +1453,11 @@ function get_full_script_path() {
function has_page_help() {
// the path of the current script (used for page help)
$scriptname = substr(strip_querystring(get_full_script_path()), strlen(get_config('wwwroot')));
$scriptname = substr(urldecode(strip_querystring(get_full_script_path())), strlen(get_config('wwwroot')));
if (strpos($scriptname, '.php') != (strlen($scriptname) - 4)) {
$scriptname .= 'index.php';
}
$scriptname = substr($scriptname, 0, -4);
$firstdir = $scriptname;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment