[fix] bad detection of favicon url

This commit is contained in:
Knah Tsaeb 2015-01-30 10:47:07 +01:00
parent f0bec991d0
commit 086adcd4a9

View file

@ -2112,6 +2112,7 @@ function returnFavicon($url){
require_once 'inc/DataAccess.php'; require_once 'inc/DataAccess.php';
require_once 'inc/Favicon.php'; require_once 'inc/Favicon.php';
$favicon = new \Favicon\Favicon(); $favicon = new \Favicon\Favicon();
$favicon->cache(array('dir'=>'cache'));
$urlOfFavicon = $favicon->get($url); $urlOfFavicon = $favicon->get($url);
if(!$urlOfFavicon){ if(!$urlOfFavicon){
if($GLOBALS['config']['ENABLE_LOCALCACHE'] === true){ if($GLOBALS['config']['ENABLE_LOCALCACHE'] === true){