bjori Tue Aug 14 12:24:05 2007 UTC
Modified files:
/phd build.php
Log:
Make sure a theme doesn't override the formats callback function
http://cvs.php.net/viewvc.cgi/phd/build.php?r1=1.20&r2=1.21&diff_format=u
Index: phd/build.php
diff -u phd/build.php:1.20 phd/build.php:1.21
--- phd/build.php:1.20 Tue Aug 14 12:22:19 2007
+++ phd/build.php Tue Aug 14 12:24:05 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: build.php,v 1.20 2007/08/14 12:22:19 bjori Exp $ */
+/* $Id: build.php,v 1.21 2007/08/14 12:24:05 bjori Exp $ */
function err($no, $str, $file, $line) {
global $notify;
@@ -105,7 +105,6 @@
$nodename = $reader->name;
$open = $nodetype == XMLReader::ELEMENT;
- $funcname = "format_$nodename";
$skip = array();
foreach($elementmaps as $theme => $map) {
if (isset($map[$nodename])) {
@@ -133,6 +132,7 @@
}
}
+ $funcname = "format_$nodename";
if (count($skip) < count($themes)) {
if (isset($formatmap[$nodename])) {
$tag = $formatmap[$nodename];