1
0
mirror of synced 2025-01-29 19:41:45 +03:00

set the whole path as title

This commit is contained in:
runa 2007-02-06 14:22:51 +00:00
parent bb6d574e93
commit 7324938c6e

View File

@ -568,18 +568,20 @@ $menu = array('Getting started' =>
))
);
$title = '';
if (!empty($_REQUEST['index'])){
$ex = explode(".",$_REQUEST["index"]);
$paths = array2path($menu);
if( ! isset($paths[$ex[0]])){
$title = '';
}else{
$title = " / ". $paths[$ex[0]];
if( isset($paths[$ex[0]])){
$currIndex = '';
for($i=0; $i<count($ex); $i++){
if ($currIndex) {$currIndex.=".";}
$currIndex .= $ex[$i];
if (!isset($paths[$currIndex])){ break; }
$title .= " - ". $paths[$currIndex];
}
}
}else{
$title = '';
}
include("top.php");
?>