cvs: phpdoc /scripts file-entities.php.in
| From: | Gabor Hojtsy | Date: | Thu, 02 Sep 2004 22:12:59 +0000 |
| Subject: | cvs: phpdoc /scripts file-entities.php.in | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969363747@lists.php.net to get a copy of this message | ||
goba Thu Sep 2 18:12:59 2004 EDT
Modified files:
/phpdoc/scripts file-entities.php.in
Log:
small simplification and a comment, so we will find that this generates functions.xml files
http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.20&r2=1.21&ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.20 phpdoc/scripts/file-entities.php.in:1.21
--- phpdoc/scripts/file-entities.php.in:1.20 Thu Sep 2 18:03:13 2004
+++ phpdoc/scripts/file-entities.php.in Thu Sep 2 18:12:59 2004
@@ -17,7 +17,7 @@
| Gabor Hojtsy <goba@php.net> |
+----------------------------------------------------------------------+
- $Id: file-entities.php.in,v 1.20 2004/09/02 22:03:13 goba Exp $
+ $Id: file-entities.php.in,v 1.21 2004/09/02 22:12:59 goba Exp $
*/
/**
@@ -177,7 +177,8 @@
$dh = opendir($work_dir);
if (!$dh) { return FALSE; }
- // If the working directory is a reference functions directory
+ // If the working directory is a reference functions directory,
+ // The start to generate a functions.xml file for that folder.
if (preg_match("!/reference/.*/functions$!", $work_dir)) {
// Start new functions file with empty entity set
@@ -185,8 +186,7 @@
$functions_file = "$work_dir.xml";
// Get relative file path to original directory, and form an entity
- $functions_file_entity = str_replace("$orig_dir/", "", $work_dir);
- $functions_file_entity = fname2entname($functions_file_entity);
+ $functions_file_entity = fname2entname(str_replace("$orig_dir/", "",
$work_dir));
$entities[] = entstr($functions_file_entity, $functions_file);
}