svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php

From: Date: Wed, 31 Mar 2010 22:49:08 +0000
Subject: svn: /web/doc-editor/trunk/php/ EntitiesAcronymsFetcher.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1721@lists.php.net to get a copy of this message
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; }

« previous php.doc.web (#1721) next »