For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2004 > cvs: livedocs / handlers.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: livedocs / handlers.php
Nuno Lopes

2004-04-28, 1:46 pm

nlopess Wed Apr 28 12:08:54 2004 EDT

Modified files:
/livedocs handlers.php
Log:
using globals instead. noted by derick

http://cvs.php.net/diff.php/livedoc...1.4&r2=1.5&ty=u
Index: livedocs/handlers.php
diff -u livedocs/handlers.php:1.4 livedocs/handlers.php:1.5
--- livedocs/handlers.php:1.4 Tue Apr 27 11:12:28 2004
+++ livedocs/handlers.php Wed Apr 28 12:08:53 2004
@@ -18,7 +18,7 @@
// | Special Handlers for $aliases |
// +----------------------------------------------------------------------+
//
-// $Id: handlers.php,v 1.4 2004/04/27 15:12:28 nlopess Exp $
+// $Id: handlers.php,v 1.5 2004/04/28 16:08:53 nlopess Exp $


/***********************************
@@ -45,8 +45,7 @@

function handle_contents()
{
- GLOBAL $title;
- return '<center><h1>' . $title . '</h1></center><h2>Contents</h2>' . do_contents(1, 0);
+ return '<center><h1>' . $GLOBALS['title'] . '</h1></center><h2>Contents</h2>' . do_contents(1, 0);
}

/*******************
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com