Commit 7324938c authored by runa's avatar runa

set the whole path as title

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