nlopess         Sat Sep 24 19:28:42 2005 EDT

  Modified files:              
    /phpdoc/scripts     file-entities.php.in 
  Log:
  order extensions by titleabbreb, as it is used in the left menu of php.net 
docs.
  also sort data only once, instead of once per extension :)
  
http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.39&r2=1.40&ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.39 
phpdoc/scripts/file-entities.php.in:1.40
--- phpdoc/scripts/file-entities.php.in:1.39    Sun Aug 21 12:27:08 2005
+++ phpdoc/scripts/file-entities.php.in Sat Sep 24 19:28:42 2005
@@ -17,7 +17,7 @@
   |             Gabor Hojtsy <[EMAIL PROTECTED]>                              |
   +----------------------------------------------------------------------+
   
-  $Id: file-entities.php.in,v 1.39 2005/08/21 16:27:08 goba Exp $
+  $Id: file-entities.php.in,v 1.40 2005/09/24 23:28:42 nlopess Exp $
 */
 
 /**
@@ -81,8 +81,8 @@
                if (!$title) $title = $dirent; // extension name is close enough
                $builtin_extensions[$title] = "&reference.$dirent.reference;";
        }
-       ksort($builtin_extensions);
 }
+ksort($builtin_extensions);
 
 create_part_file("entities/builtin-extensions.xml", $builtin_extensions, 
'funcref', '&FunctionReference;');
 $entities[] = entstr("builtin.extensions", 
"$out_dir/entities/builtin-extensions.xml");
@@ -453,6 +453,10 @@
         * ... but this is probably good enough for 98.5% of extensions
         */
 
+       if (preg_match("#titleabbrev>(.*?)</titleabbrev>#", $contents, 
$matches)) {
+               return strtoupper(trim($matches[1]));
+       }
+
        if (preg_match("#<title>(.*?)</title>#", $contents, $matches)) {
                return strtoupper(trim($matches[1]));
        }

Reply via email to