cvs: livedocs / style_mapping.php

From: Date: Sun, 18 Apr 2004 15:02:33 +0000
Subject: cvs: livedocs / style_mapping.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969360162@lists.php.net to get a copy of this message
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);

« previous php.doc (#969360162) next »