mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	Fixed Smarty extension "use" function to work properly in linux environment
This commit is contained in:
		@ -10,6 +10,7 @@ namespace yii\smarty;
 | 
			
		||||
use Smarty;
 | 
			
		||||
use Yii;
 | 
			
		||||
use yii\helpers\ArrayHelper;
 | 
			
		||||
use yii\helpers\StringHelper;
 | 
			
		||||
use yii\helpers\Url;
 | 
			
		||||
use yii\web\View;
 | 
			
		||||
 | 
			
		||||
@ -133,7 +134,7 @@ class Extension
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $class = $params['class'];
 | 
			
		||||
        $alias = ArrayHelper::getValue($params, 'as', basename($params['class']));
 | 
			
		||||
        $alias = ArrayHelper::getValue($params, 'as', StringHelper::basename($params['class']));
 | 
			
		||||
        $type = ArrayHelper::getValue($params, 'type', 'static');
 | 
			
		||||
 | 
			
		||||
        // Register the class during compile time
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user