[pLog-svn] r995 - plog/trunk/class/locale

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Feb 8 13:26:19 GMT 2005


Author: ork
Date: 2005-02-08 13:26:19 +0000 (Tue, 08 Feb 2005)
New Revision: 995

Modified:
   plog/trunk/class/locale/locale.class.php
Log:
better use ereg.. 



Modified: plog/trunk/class/locale/locale.class.php
===================================================================
--- plog/trunk/class/locale/locale.class.php	2005-02-08 13:08:10 UTC (rev 994)
+++ plog/trunk/class/locale/locale.class.php	2005-02-08 13:26:19 UTC (rev 995)
@@ -494,7 +494,7 @@
 
 			$text = $format;
 			foreach( array_keys($values) as $key ) {
-                if (strpos($format, $key))
+                if( ereg($key, $text) )
                     $text = str_replace( $key, $values[$key], $text );
 			}
 




More information about the pLog-svn mailing list