Commit bb6d574e authored by runa's avatar runa

add the corresponding <title> to manual pages

parent 6f4b4e0e
<?php
require_once("highlight.php");
error_reporting(E_ALL);
include("top.php");
$h = new PHP_Highlight();
function render($title,$t,$e) {
......@@ -568,6 +568,19 @@ $menu = array('Getting started' =>
))
);
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;
......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Doctrine ORM Framework</TITLE>
<TITLE>Doctrine ORM Framework <?=$title?></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="styles/basic.css">
</HEAD>
......
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