diff --git a/bridges/DilbertBridge.php b/bridges/DilbertBridge.php index a84e5e875a0..7069ee41e0f 100644 --- a/bridges/DilbertBridge.php +++ b/bridges/DilbertBridge.php @@ -3,7 +3,7 @@ class DilbertBridge extends BridgeAbstract { const MAINTAINER = 'kranack'; const NAME = 'Dilbert Daily Strip'; - const URI = 'http://dilbert.com'; + const URI = 'https://dilbert.com'; const CACHE_TIMEOUT = 21600; // 6h const DESCRIPTION = 'The Unofficial Dilbert Daily Comic Strip'; @@ -17,9 +17,9 @@ public function collectData(){ $img = $element->find('img', 0); $link = $element->find('a', 0); $comic = $img->src; - $title = $link->alt; + $title = $img->alt; $url = $link->href; - $date = substr($url, 25); + $date = substr(strrchr($url, '/'), 1); if (empty($title)) $title = 'Dilbert Comic Strip on ' . $date; $date = strtotime($date);