mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 06:11:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			490 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			490 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
/**
 | 
						|
* Smarty method addPluginsDir
 | 
						|
* 
 | 
						|
* Adds directory of plugin files
 | 
						|
* 
 | 
						|
* @package Smarty
 | 
						|
* @subpackage SmartyMethod
 | 
						|
* @author Uwe Tews 
 | 
						|
*/
 | 
						|
 | 
						|
/**
 | 
						|
* Adds directory of plugin files
 | 
						|
* 
 | 
						|
* @param object $smarty 
 | 
						|
* @param string $ |array $ plugins folder
 | 
						|
* @return 
 | 
						|
*/
 | 
						|
function AddPluginsDir($smarty, $plugins_dir)
 | 
						|
{
 | 
						|
    $smarty->plugins_dir = array_merge((array)$smarty->plugins_dir, (array)$plugins_dir);
 | 
						|
    $smarty->plugins_dir = array_unique($smarty->plugins_dir);
 | 
						|
    return;
 | 
						|
} 
 | 
						|
 | 
						|
?>
 |