Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29145
Modified Files:
Tag: branch-smarty
compat.php
Log Message:
- Make $translation static
Index: compat.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/compat.php,v
retrieving revision 1.18.2.2
retrieving revision 1.18.2.3
diff -u -d -r1.18.2.2 -r1.18.2.3
--- compat.php 22 Sep 2004 11:34:03 -0000 1.18.2.2
+++ compat.php 24 Sep 2004 17:46:36 -0000 1.18.2.3
@@ -104,8 +104,8 @@
function serendipity_get_bool($item) {
- $translation = array('true' => true,
- 'false' => false);
+ static $translation = array('true' => true,
+ 'false' => false);
if (isset($translation[$item])) {
return $translation[$item];
|