bjori           Tue Jan 30 18:29:41 2007 UTC

  Modified files:              
    /phpdoc/scripts     fixphpweb.php 
  Log:
  Remove "<?xml" from XSL-xhtml builds too
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/fixphpweb.php?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/scripts/fixphpweb.php
diff -u phpdoc/scripts/fixphpweb.php:1.3 phpdoc/scripts/fixphpweb.php:1.4
--- phpdoc/scripts/fixphpweb.php:1.3    Wed Aug 25 08:36:32 2004
+++ phpdoc/scripts/fixphpweb.php        Tue Jan 30 18:29:41 2007
@@ -29,7 +29,7 @@
 
   <dir> is the folder, where the phpweb_xsl output
   files are located. The files will be rewritten to
-  get the !DOCTYPE removed.
+  get the !DOCTYPE && ?xml removed.
 
 <?php
     exit;
@@ -59,7 +59,7 @@
         $contents = file($fullname);
         
         // If !DOCTYPE is not found, skip file rewrite
-        if (strpos($contents[0], "<!DOCTYPE") === FALSE) { continue; }
+        if (strpos($contents[0], "<!DOCTYPE") === FALSE && 
strpos($contents[0], "<?xml ") === FALSE) { continue; }
         
         // Otherwise, rewrite the contents of the
         // file, skiping the first line

Reply via email to