iliaa Wed Jul 6 12:07:34 2005 EDT
Modified files:
/livedocs style_mapping.php
Log:
Fixed var name confusion inside format_funcsynopsis().
Added a PEAR specific optional parameter check.
# Kudos to Alan K. for coming up with these fixes.
http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.30&r2=1.31&ty=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.30 livedocs/style_mapping.php:1.31
--- livedocs/style_mapping.php:1.30 Thu Jun 30 17:34:53 2005
+++ livedocs/style_mapping.php Wed Jul 6 12:07:31 2005
@@ -18,7 +18,7 @@
// | Helper functions for formatting elements |
// +----------------------------------------------------------------------+
//
-// $Id: style_mapping.php,v 1.30 2005/06/30 21:34:53 iliaa Exp $
+// $Id: style_mapping.php,v 1.31 2005/07/06 16:07:31 iliaa Exp $
// almost XPATH.. ;-)
$map = array(
@@ -543,7 +543,7 @@
$param = null;
$c3 = count($def->children);
- for ($j = 0; $j < $c; $j++) {
+ for ($j = 0; $j < $c3; $j++) {
$k = $def->children[$j];
switch($k->tagname) {
case 'parameter':
@@ -565,6 +565,9 @@
if (count($param->children) > 1) {
$param = $param->children[1];
$optional = true;
+ } else if (BUILD_TYPE == 'peardoc'
isset($param->children[0]->tagname) && $param->children[0]->tagname ==
'optional') {
+ $param = $param->children[0];
+ $optional = true;
} else {
$optional = false;
}