bjori           Tue Aug 14 11:47:35 2007 UTC

  Modified files:              
    /phd        build.php 
  Log:
  Remove useless XMLReader->name calls
  
  
http://cvs.php.net/viewvc.cgi/phd/build.php?r1=1.16&r2=1.17&diff_format=u
Index: phd/build.php
diff -u phd/build.php:1.16 phd/build.php:1.17
--- phd/build.php:1.16  Sat Aug 11 16:42:06 2007
+++ phd/build.php       Tue Aug 14 11:47:35 2007
@@ -1,5 +1,5 @@
 <?php
-/*  $Id: build.php,v 1.16 2007/08/11 16:42:06 bjori Exp $ */
+/*  $Id: build.php,v 1.17 2007/08/14 11:47:35 bjori Exp $ */
 
 function err($no, $str, $file, $line) {
        global $notify;
@@ -89,11 +89,11 @@
     $reader = new PhDReader($OPTIONS["xml_root"] . "/.manual.xml");
     while($reader->read()) {
         $nodetype = $reader->nodeType;
-        $nodename = $reader->name;
 
         switch($nodetype) {
         case XMLReader::ELEMENT:
         case XMLReader::END_ELEMENT:
+            $nodename = $reader->name;
             $open = $nodetype == XMLReader::ELEMENT;
 
             $funcname = "format_$nodename";
@@ -196,6 +196,7 @@
             continue 2;
 
         default:
+            $nodename = $reader->name;
             trigger_error("Don't know how to handle {$nodename} {$nodetype}", 
E_USER_ERROR);
             return;
         }

Reply via email to