forked from science-ation/science-ation
Make the Help button work on all of the sfiab.com sites because of the mod-rewrite REDIRECT_URL
This commit is contained in:
parent
c83cb44aa6
commit
bf58a9d78b
@ -624,7 +624,10 @@ else if($title)
|
||||
//if we're under /admin or /config then we want to show the ? help icon
|
||||
if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config")
|
||||
{
|
||||
$fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1);
|
||||
if($_SERVER['REDIRECT_SCRIPT_URL'])
|
||||
$fname=substr($_SERVER['REDIRECT_SCRIPT_URL'],strlen($config['SFIABDIRECTORY'])+1);
|
||||
else
|
||||
$fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1);
|
||||
echo "</td><td align=\"right\"><a target=\"_sfiabhelp\" href=\"http://www.sfiab.ca/wiki/index.php/Help_$fname\"><img border=\"0\" src=\"".$config['SFIABDIRECTORY']."/images/32/help.".$config['icon_extension']."\"></a>";
|
||||
}
|
||||
"</td></tr>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user