Merge pull request #13176 from MrPetovan/bug/warnings
Restore is_string() as a Smarty modifier
This commit is contained in:
		
				commit
				
					
						4246ffc892
					
				
			
		
					 3 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -53,6 +53,10 @@ class FriendicaSmarty extends Smarty
 | 
			
		|||
		$this->setConfigDir($work_dir . '/');
 | 
			
		||||
		$this->setCacheDir($work_dir . '/');
 | 
			
		||||
 | 
			
		||||
		$this->registerPlugin('modifier', 'is_string', function ($value) {
 | 
			
		||||
			return is_string($value);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		/*
 | 
			
		||||
		 * Enable sub-directory splitting for reducing directory descriptor
 | 
			
		||||
		 * size. The default behavior is to put all compiled/cached files into
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue