Hierarchy fixup
[mirrors/Kyberia-bloodline.git] / wwwroot / smarty / Smarty-2.6.10 / libs / plugins / modifier.default.php
diff --git a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.default.php b/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.default.php
new file mode 100644 (file)
index 0000000..8268e39
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty default modifier plugin
+ *
+ * Type:     modifier<br>
+ * Name:     default<br>
+ * Purpose:  designate default value for empty variables
+ * @link http://smarty.php.net/manual/en/language.modifier.default.php
+ *          default (Smarty online manual)
+ * @param string
+ * @param string
+ * @return string
+ */
+function smarty_modifier_default($string, $default = '')
+{
+    if (!isset($string) || $string === '')
+        return $default;
+    else
+        return $string;
+}
+
+/* vim: set expandtab: */
+
+?>
This page took 0.102109 seconds and 4 git commands to generate.