1 <?php
3 /**
4 * Smarty method addPluginsDir
5 *
6 * Adds directory of plugin files
7 *
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews
11 */
13 /**
14 * Adds directory of plugin files
15 *
16 * @param object $smarty
17 * @param string $ |array $ plugins folder
18 * @return
19 */
20 function Smarty_Method_AddPluginsDir($smarty, $plugins_dir)
21 {
22 $smarty->plugins_dir = array_merge((array)$smarty->plugins_dir, (array)$plugins_dir);
23 $smarty->plugins_dir = array_unique($smarty->plugins_dir);
24 return;
25 }
27 ?>