[imc-sf-coders] CVS update of
sf-active/sf-active/shared/classes/smarty (1 file)
Bart M
pseudopunk at codecoop.org
Wed Dec 28 07:30:35 PST 2005
Date: Wednesday, December 28, 2005 @ 16:30:35
Author: pseudopunk
Path: /cvsroot/sf-active/sf-active/sf-active/shared/classes/smarty
Added: function.get_newswire_suffix.php
cleaning up more
Index: sf-active/sf-active/shared/classes/smarty/function.get_newswire_suffix.php
diff -u /dev/null sf-active/sf-active/shared/classes/smarty/function.get_newswire_suffix.php:1.1
--- /dev/null Wed Dec 28 16:30:35 2005
+++ sf-active/sf-active/shared/classes/smarty/function.get_newswire_suffix.php Wed Dec 28 16:30:35 2005
@@ -0,0 +1,11 @@
+<?
+/**
+ * will return the proper summaries.html value (summaries.en.html or summaries.html ...)
+ * @package templates
+ */
+function smarty_function_get_newswire_suffix(){
+ $langpath = $smarty->_tpl_vars['p_rule']['langpath'];
+ if(strlen($langpath) > 0) $langpath.='.';
+ return 'summaries.'.$langpath.'html';
+}
+?>
More information about the imc-sf-coders
mailing list