From 9474d5cc67076f8328adfbc68a32444b79bb0b87 Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 14 Sep 2008 19:40:12 +0000 Subject: real static param git-svn-id: http://piwigo.org/svn/trunk@2536 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/template.class.php b/include/template.class.php index 777d4ddec..b9d06b750 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -304,7 +304,7 @@ class Template { * translate variable modifier - translates a text to the currently loaded * language */ - /*static*/ function mod_translate($text) + static function mod_translate($text) { return l10n($text); } @@ -313,7 +313,7 @@ class Template { * explode variable modifier - similar to php explode * 'Yes;No'|@explode:';' -> array('Yes', 'No') */ - /*static*/ function mod_explode($text, $delimiter=',') + static function mod_explode($text, $delimiter=',') { return explode($delimiter, $text); } @@ -371,7 +371,7 @@ class Template { } } - /*static */ function prefilter_white_space($source, &$smarty) + static function prefilter_white_space($source, &$smarty) { $ld = $smarty->left_delimiter; $rd = $smarty->right_delimiter; @@ -398,7 +398,7 @@ class Template { * Smarty prefilter to allow caching (whenever possible) language strings * from templates. */ - /*static */ function prefilter_language($source, &$smarty) + static function prefilter_language($source, &$smarty) { global $lang; $ldq = preg_quote($smarty->left_delimiter, '~'); -- cgit v1.2.3