nlopess Sat May 1 06:08:23 2004 EDT
Modified files:
/livedocs BUGS livedoc.php
Log:
BUG FIX: now ref pages show the description of functions
http://cvs.php.net/diff.php/livedocs/BUGS?r1=1.5&r2=1.6&ty=u
Index: livedocs/BUGS
diff -u livedocs/BUGS:1.5 livedocs/BUGS:1.6
--- livedocs/BUGS:1.5 Sat Mar 20 05:17:23 2004
+++ livedocs/BUGS Sat May 1 06:08:22 2004
@@ -4,12 +4,10 @@
- The reserved constants and the missing stuff section are not working,
the later would be better left out from the livedocs output.
- - Description of functions are missing on overview (ref.*) pages
-
- The ref.pcre page does not link properly to the pattern modifiers and
pattern syntax docs (it thinks that those are functions but this is
not true at all)
- Table spans don't work. Check nl_langinfo() function for an example
-$Revision: 1.5 $
+$Revision: 1.6 $
http://cvs.php.net/diff.php/livedocs/livedoc.php?r1=1.94&r2=1.95&ty=u
Index: livedocs/livedoc.php
diff -u livedocs/livedoc.php:1.94 livedocs/livedoc.php:1.95
--- livedocs/livedoc.php:1.94 Sat May 1 04:39:08 2004
+++ livedocs/livedoc.php Sat May 1 06:08:22 2004
@@ -18,7 +18,7 @@
// | Generate an HTML version of a phpdoc/docbook page on the fly |
// +----------------------------------------------------------------------+
//
-// $Id: livedoc.php,v 1.94 2004/05/01 08:39:08 wez Exp $
+// $Id: livedoc.php,v 1.95 2004/05/01 10:08:22 nlopess Exp $
define('LIVEDOC_SOURCE', dirname(__FILE__));
include LIVEDOC_SOURCE . '/common.php';
@@ -483,7 +483,8 @@
}
if ($title == $func_name) {
- $title = "";
+ $q = sqlite_unbuffered_query($GLOBALS['idx'], "SELECT descr from toc
where docbook_id='$id'");
+ $title = ' - ' . sqlite_fetch_single($q);
} elseif ($parts[3] == 'class') {
$title = " - $title class";
} else {