svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Wed, 31 Mar 2010 22:49:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=297244
Log:
Fix Entities Acronyms
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-31 22:35:17 UTC (rev 297243)
+++ web/doc-editor/trunk/php/EntitiesAcronymsFetcher.php 2010-03-31 22:49:08 UTC (rev 297244)
@@ -38,10 +38,10 @@
$count = 0;
while( list($k, $file) = each($files))
{
- if( $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);
@@ -72,7 +72,7 @@
$count = 0;
while( list($k, $file) = each($files))
{
- if( $content = file_get_contents($file) ) {
+ if( !$content = file_get_contents($file) ) {
continue;
}