From 6cbcdf4d7b79aa038e5773c3a93d215542400c95 Mon Sep 17 00:00:00 2001 From: uwetews Date: Mon, 17 Aug 2015 21:52:32 +0200 Subject: - load seldom used Smarty API methods dynamically to reduce memory footprint --- .../smarty_internal_method_unregisterplugin.php | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 libs/sysplugins/smarty_internal_method_unregisterplugin.php (limited to 'libs/sysplugins/smarty_internal_method_unregisterplugin.php') diff --git a/libs/sysplugins/smarty_internal_method_unregisterplugin.php b/libs/sysplugins/smarty_internal_method_unregisterplugin.php new file mode 100644 index 00000000..06cb2d35 --- /dev/null +++ b/libs/sysplugins/smarty_internal_method_unregisterplugin.php @@ -0,0 +1,41 @@ +smarty) ? $obj->smarty : $obj; + if (isset($smarty->registered_plugins[$type][$name])) { + unset($smarty->registered_plugins[$type][$name]); + } + return $obj; + } +} \ No newline at end of file -- cgit v1.3