From a02262add1eafab7937c0fa3359384af58ecb3be Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 24 Jun 2015 00:47:04 +0200 Subject: [PATCH] Properly update to smarty 3.1.27. --- libs/smarty/autoloader.php | 30 ++ libs/smarty/plugins/block.php.php | 25 ++ .../function.html_options_multiple.php | 173 ++++++++++ libs/smarty/plugins/modifier.daysago.php | 41 +++ libs/smarty/plugins/modifier.fsize_format.php | 57 ++++ libs/smarty/plugins/modifier.magicurl.php | 20 ++ libs/smarty/plugins/modifier.nl2br.php | 31 ++ libs/smarty/plugins/modifier.parray.php | 9 + .../plugins/modifier.phpdate_format.php | 64 ++++ libs/smarty/plugins/modifier.roundup.php | 5 + libs/smarty/plugins/modifier.strtotime.php | 6 + libs/smarty/plugins/modifier.timeago.php | 49 +++ .../sysplugins/smarty_config_source.php | 94 ++++++ .../sysplugins/smarty_internal_config.php | 305 ++++++++++++++++++ 14 files changed, 909 insertions(+) create mode 100644 libs/smarty/autoloader.php create mode 100644 libs/smarty/plugins/block.php.php create mode 100644 libs/smarty/plugins/function.html_options_multiple.php create mode 100644 libs/smarty/plugins/modifier.daysago.php create mode 100644 libs/smarty/plugins/modifier.fsize_format.php create mode 100644 libs/smarty/plugins/modifier.magicurl.php create mode 100644 libs/smarty/plugins/modifier.nl2br.php create mode 100644 libs/smarty/plugins/modifier.parray.php create mode 100644 libs/smarty/plugins/modifier.phpdate_format.php create mode 100644 libs/smarty/plugins/modifier.roundup.php create mode 100644 libs/smarty/plugins/modifier.strtotime.php create mode 100644 libs/smarty/plugins/modifier.timeago.php create mode 100644 libs/smarty/sysplugins/smarty_config_source.php create mode 100644 libs/smarty/sysplugins/smarty_internal_config.php diff --git a/libs/smarty/autoloader.php b/libs/smarty/autoloader.php new file mode 100644 index 000000000..6de36a3fd --- /dev/null +++ b/libs/smarty/autoloader.php @@ -0,0 +1,30 @@ + diff --git a/libs/smarty/plugins/block.php.php b/libs/smarty/plugins/block.php.php new file mode 100644 index 000000000..4a0aa3dd7 --- /dev/null +++ b/libs/smarty/plugins/block.php.php @@ -0,0 +1,25 @@ +allow_php_tag) { + throw new SmartyException("{php} is deprecated, set allow_php_tag = true to enable"); + } + eval($content); + return ''; +} +?> \ No newline at end of file diff --git a/libs/smarty/plugins/function.html_options_multiple.php b/libs/smarty/plugins/function.html_options_multiple.php new file mode 100644 index 000000000..826ec3bd2 --- /dev/null +++ b/libs/smarty/plugins/function.html_options_multiple.php @@ -0,0 +1,173 @@ + + * Name: html_options_multiple
+ * Purpose: Prints the list of