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

ork at devel.plogworld.net ork at devel.plogworld.net
Wed Mar 30 18:18:33 GMT 2005


Author: ork
Date: 2005-03-30 18:18:32 +0000 (Wed, 30 Mar 2005)
New Revision: 1652

Modified:
   plog/trunk/class/locale/locale.class.php
Log:
added ancient php version check :)


Modified: plog/trunk/class/locale/locale.class.php
===================================================================
--- plog/trunk/class/locale/locale.class.php	2005-03-30 18:10:51 UTC (rev 1651)
+++ plog/trunk/class/locale/locale.class.php	2005-03-30 18:18:32 UTC (rev 1652)
@@ -489,9 +489,9 @@
 				$format = $this->_dateFormat;
 
             // now we can continue normally
-			$values["%a"] = htmlentities(substr(html_entity_decode($weekday), 0, 2 ));
+            $values["%a"] = function_exists('html_entity_decode') ? htmlentities(substr(html_entity_decode($weekday), 0, 2 )) : substr($weekday, 0, 2 );
 			$values["%A"] = $weekday;
-			$values["%b"] = htmlentities(substr(html_entity_decode($monthStr), 0, 3 ));
+			$values["%b"] = function_exists('html_entity_decode') ? htmlentities(substr(html_entity_decode($monthStr), 0, 3 )) : substr($monthStr, 0, 3);
 			$values["%B"] = $monthStr;
 			$values["%d"] = ($timeStamp->getDay() < 10) ? "0".$timeStamp->getDay() : $timeStamp->getDay();
 			$values["%e"] = intval($timeStamp->getDay());




More information about the pLog-svn mailing list