mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 19:28:55 +00:00
Add smarty plugin loading method.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user