Add smarty plugin loading method.

This commit is contained in:
DariusIII
2016-05-27 15:25:35 +02:00
parent 896b27b4f2
commit 92457e3729
2 changed files with 46 additions and 3 deletions
@@ -5,6 +5,11 @@
* @package Smarty
* @subpackage PluginsFunction
*/
// Fix by nZEDb
require_once 'load_plugin_dependency.php';
// End fix by nZEDb.
/**
* Smarty {html_options_multiple} function plugin
*
@@ -34,7 +39,7 @@
*/
function smarty_function_html_options_multiple($params, $template)
{
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
load_plugin_dependency('shared.escape_special_chars.php');
$name = null;
$values = null;
$options = null;
@@ -95,7 +100,7 @@ function smarty_function_html_options_multiple($params, $template)
}
break;
}
// omit break; to fall through!
// omit break; to fall through!
default:
if (!is_array($_val)) {
$extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"';
@@ -171,4 +176,4 @@ function smarty_function_html_options_multiple_optgroup($key, $values, $selected
$optgroup_html .= "</optgroup>\n";
return $optgroup_html;
}
?>
?>