svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php
| From: | Yannick Torres | Date: | Wed, 24 Mar 2010 10:26:41 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1673@lists.php.net to get a copy of this message | ||
yannick Wed, 24 Mar 2010 10:26:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296701
Log:
Exclude acronyms/entities if the path isn't correct into the config project file
Changed paths:
U web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php
Modified: web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php
===================================================================
--- web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php 2010-03-24 10:26:02 UTC (rev 296700)
+++ web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php 2010-03-24 10:26:41 UTC (rev 296701)
@@ -33,10 +33,15 @@
$files = explode("|",
$appConf[$project]['acronym.usedbyeditor.location']);
+ unset($this->acronyms);
+
$count = 0;
while( list($k, $file) = each($files))
{
- $content = file_get_contents($file);
+ if( $content = file_get_contents($file) ) {
+ continue;
+ }
+
preg_match_all('/<varlistentry>(.*?)<term>(.*?)<\/term>(.*?)<simpara>(.*?)<\/simpara>(.*?)<\/varlistentry>/s',
$content, $match);
$from = explode('/',$file);
@@ -62,10 +67,15 @@
$files = explode("|",
$appConf[$project]['entities.usedbyeditor.location']);
+ unset($this->entities);
+
$count = 0;
while( list($k, $file) = each($files))
- {
- $content = file_get_contents($file);
+ {
+ if( $content = file_get_contents($file) ) {
+ continue;
+ }
+
preg_match_all('/<!ENTITY\s(.*?)\s(\'|")(.*?)(\2)>/s',
$content, $match);
$from = explode('/',$file);