goba            Thu Dec 26 15:26:00 2002 EDT

  Modified files:              
    /phpdoc/scripts     file-entities.php.in 
  Log:
  Skip the entity creation for files in the "functions"
  directory (but not in /reference/SOMETHING/functions).
  This makes the XML correct even if tested with xmlint.
  
  
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.6 phpdoc/scripts/file-entities.php.in:1.7
--- phpdoc/scripts/file-entities.php.in:1.6     Mon Nov 25 07:29:59 2002
+++ phpdoc/scripts/file-entities.php.in Thu Dec 26 15:26:00 2002
@@ -17,7 +17,7 @@
 # |             Gabor Hojtsy <[EMAIL PROTECTED]>                              |
 # +----------------------------------------------------------------------+
 # 
-# $Id: file-entities.php.in,v 1.6 2002/11/25 12:29:59 hholzgra Exp $
+# $Id: file-entities.php.in,v 1.7 2002/12/26 20:26:00 goba Exp $
 */
 
 /**
@@ -185,6 +185,14 @@
  */
 function file_entities($work_dir, $trans_dir, $orig_dir, &$entities) {
 
+    // Skip the function directory not under "reference". That
+    // folder is only kept for backward compatibility and only
+    // in the English version of the docs.
+    if (strpos($work_dir, "functions") && !preg_match("!reference/.*/functions!", 
+$work_dir)) {
+        return;
+    }
+    
+    // Compute translated version's path
     $trans_path = str_replace($orig_dir, $trans_dir, $work_dir);
     
     // Try to open English working directory



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to