Fix bug in Source: link in danbooru theme
This commit is contained in:
		
							parent
							
								
									dd60840e4b
								
							
						
					
					
						commit
						06cfda990d
					
				@ -31,7 +31,7 @@ class CustomViewImageTheme extends ViewImageTheme {
 | 
			
		||||
 | 
			
		||||
		if(!is_null($image->source)) {
 | 
			
		||||
			$h_source = html_escape($image->source);
 | 
			
		||||
			if(substr($image->source, 0, 7) == "http://") {
 | 
			
		||||
			if(substr($image->source, 0, 7) != "http://") {
 | 
			
		||||
				$h_source = "http://" . $h_source;
 | 
			
		||||
			}
 | 
			
		||||
			$html .= "<br>Source: <a href='$h_source'>link</a>";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user