cvs: phd / build.php

From: Date: Fri, 17 Aug 2007 09:16:07 +0000
Subject: cvs: phd / build.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377546@lists.php.net to get a copy of this message
bjori Fri Aug 17 09:16:07 2007 UTC Modified files: /phd build.php Log: Fix major typo causing the first textmap match to overwrite the tagname http://cvs.php.net/viewvc.cgi/phd/build.php?r1=1.21&r2=1.22&diff_format=u Index: phd/build.php diff -u phd/build.php:1.21 phd/build.php:1.22 --- phd/build.php:1.21 Tue Aug 14 12:24:05 2007 +++ phd/build.php Fri Aug 17 09:16:07 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: build.php,v 1.21 2007/08/14 12:24:05 bjori Exp $ */ +/* $Id: build.php,v 1.22 2007/08/17 09:16:07 bjori Exp $ */ function err($no, $str, $file, $line) { global $notify; @@ -162,10 +162,10 @@ case XMLReader::TEXT: $skip = array(); $value = $reader->value; - $tagname = $reader->getParentTagName(); + $parentname = $reader->getParentTagName(); foreach($textmaps as $theme => $map) { - if (isset($map[$tagname])) { - $tagname = $map[$tagname]; + if (isset($map[$parentname])) { + $tagname = $map[$parentname]; if (is_array($tagname)) { $tagname = $reader->notXPath($tagname, $reader->depth-1); } @@ -222,6 +222,7 @@ ->show(); } } // foreach($OPTIONS["output_thtemes"]) + /* * vim600: sw=4 ts=4 fdm=syntax syntax=php et * vim<600: sw=4 ts=4

« previous php.doc (#969377546) next »