Can you hack this to have it printed *after* all the refnames ?

Actually we have this :

mysqli_autocommit
PHP 5
mysqli->auto_commit

It would be better to have :

mysqli_autocommit
mysqli->auto_commit
PHP 5

didou




Nuno Lopes wrote:
nlopess Sun Apr 18 11:02:33 2004 EDT

Modified files: /livedocs style_mapping.php Log:
print the version information just once
http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.6&r2=1.7&ty=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.6 livedocs/style_mapping.php:1.7
--- livedocs/style_mapping.php:1.6 Sun Apr 18 10:34:11 2004
+++ livedocs/style_mapping.php Sun Apr 18 11:02:33 2004
@@ -18,7 +18,7 @@
// | Helper functions for formatting elements |
// +----------------------------------------------------------------------+
//
-// $Id: style_mapping.php,v 1.6 2004/04/18 14:34:11 didou Exp $
+// $Id: style_mapping.php,v 1.7 2004/04/18 15:02:33 nlopess Exp $
// almost XPATH.. ;-)
$map = array(
@@ -155,16 +155,17 @@
function format_refname($node) {
- global $current_page, $idx;
+ global $current_page, $idx, $print_version;
$vers = '';
- if (substr($current_page, 0, 9) == 'function.') {
+ if (substr($current_page, 0, 9) == 'function.' && !isset($print_version)) {
$func_name = sqlite_escape_string(strtr(substr($current_page, 9), '-', '_'));
$q = sqlite_query($idx, "SELECT versinfo FROM funcs where funcname='$func_name'");
if ($q && $r = sqlite_fetch_array($q, SQLITE_NUM)) {
$vers = sprintf('<div class="versinfo">%s</div>', $r[0]);
}
+ $print_version = 1;
}

return sprintf('<h1 class="%s">%s</h1>%s', $node->tagname, $node->content, $vers);

Reply via email to