[fix] add url prefix for smallhash url for external thumbshot

This commit is contained in:
Knah Tsaeb 2013-10-14 14:41:14 +02:00
parent 55ade1a969
commit e8633c6bbe

View file

@ -1964,6 +1964,9 @@ function computeThumbnail($url,$href=false)
}
if(!empty($GLOBALS['config']['externalThumbshot']) && $GLOBALS['config']['ENABLE_THUMBNAILS'] !== false)
{
if(strlen($url) <= 7){
$url = serverUrl().'/'.$url;
}
$thumburl = $GLOBALS['config']['externalThumbshot'].urlencode($url);
return array('src'=>$thumburl,'href'=>$href,'width'=>'120','style'=>'height:auto;','alt'=>'Custom Thumbshot');
}