diff --git a/manual/documentation.php b/manual/documentation.php index 2fd548d79..457be365f 100644 --- a/manual/documentation.php +++ b/manual/documentation.php @@ -1,7 +1,7 @@ )) ); +if (!empty($_REQUEST['index'])){ + $ex = explode(".",$_REQUEST["index"]); + $paths = array2path($menu); + if( ! isset($paths[$ex[0]])){ + $title = ''; + }else{ + $title = " / ". $paths[$ex[0]]; + } +}else{ + $title = ''; +} + +include("top.php"); ?> @@ -649,11 +662,7 @@ $menu = array('Getting started' => } else { $i = 1; - $ex = explode(".",$_REQUEST["index"]); - - - $paths = array2path($menu); - + // $paths was generated before, to display a correct document title if( ! isset($paths[$ex[0]])) exit; diff --git a/manual/top.php b/manual/top.php index 29be655da..94c298fbb 100644 --- a/manual/top.php +++ b/manual/top.php @@ -1,7 +1,7 @@ -Doctrine ORM Framework +Doctrine ORM Framework <?=$title?>