Avoid warning
This commit is contained in:
		
					parent
					
						
							
								217a8ce6ee
							
						
					
				
			
			
				commit
				
					
						1fa82581b6
					
				
			
		
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -544,6 +544,8 @@ function upgrade_bool_message($bbcode = false) {
 | 
			
		|||
 * @return string Path to the file or empty string if the file isn't found
 | 
			
		||||
 */
 | 
			
		||||
function theme_include($file, $root = '') {
 | 
			
		||||
	$file = basename($file);
 | 
			
		||||
 | 
			
		||||
	// Make sure $root ends with a slash / if it's not blank
 | 
			
		||||
	if ($root !== '' && $root[strlen($root)-1] !== '/') {
 | 
			
		||||
		$root = $root . '/';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue