Re: cvs: livedocs / handlers.php livedoc.php
| From: | Derick Rethans | Date: | Tue, 27 Apr 2004 19:33:49 +0000 |
| Subject: | Re: cvs: livedocs / handlers.php livedoc.php | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969360297@lists.php.net to get a copy of this message | ||
On Tue, 27 Apr 2004, Nuno Lopes wrote:
> nlopess Tue Apr 27 10:07:11 2004 EDT
>
> Modified files:
> /livedocs handlers.php livedoc.php
> Log:
> better title handling (error free now)
>
>
> http://cvs.php.net/diff.php/livedocs/handlers.php?r1=1.2&r2=1.3&ty=u
> Index: livedocs/handlers.php
> diff -u livedocs/handlers.php:1.2 livedocs/handlers.php:1.3
> --- livedocs/handlers.php:1.2 Tue Apr 20 16:13:13 2004
> +++ livedocs/handlers.php Tue Apr 27 10:07:11 2004
> @@ -18,7 +18,7 @@
> // | Special Handlers for $aliases |
> // +----------------------------------------------------------------------+
> //
> -// $Id: handlers.php,v 1.2 2004/04/20 20:13:13 didou Exp $
> +// $Id: handlers.php,v 1.3 2004/04/27 14:07:11 nlopess Exp $
>
>
> /***********************************
> @@ -45,7 +45,8 @@
>
> function handle_contents()
> {
> - return '<center><h1>' . MANUAL_TITLE .
> '</h1></center><h2>Contents</h2>' . do_contents(1, 0);
> + GLOBAL $title;
> + return '<center><h1>' . $title .
> '</h1></center><h2>Contents</h2>' . do_contents(1, 0);
YUCK! just pass the $title as parameter, or use $GLOBALS['title'];
Derick