X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/098a79f0819ebb89b7d48df4a6b154af4560f68e..9a23a8c0a51b7ec38a96f525484134f3cb85dc7e:/WEB-INF/lib/smarty/plugins/modifier.replace.php
diff --git a/WEB-INF/lib/smarty/plugins/modifier.replace.php b/WEB-INF/lib/smarty/plugins/modifier.replace.php
new file mode 100644
index 00000000..0636a191
--- /dev/null
+++ b/WEB-INF/lib/smarty/plugins/modifier.replace.php
@@ -0,0 +1,29 @@
+
+ * Name: replace
+ * Purpose: simple search/replace
+ *
+ * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual)
+ * @author Monte Ohrt
+ * @author Uwe Tews
+ * @param string $
+ * @param string $
+ * @param string $
+ * @return string
+ */
+function smarty_modifier_replace($string, $search, $replace)
+{
+ require_once(SMARTY_PLUGINS_DIR . 'shared.mb_str_replace.php');
+ return smarty_mb_str_replace($search, $replace, $string);
+}
+
+?>
\ No newline at end of file