Skip to content
Open
8 changes: 7 additions & 1 deletion ODT/ODTUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ public static function getImageSize($src, $maxwidth=NULL, $maxheight=NULL){
$info = getimagesize($src);
} else {
// FIXME: Add cache support for downloaded images.
$fetch = @(new DokuHTTPClient())->get($src);
if (class_exists('dokuwiki\HTTP\DokuHTTPClient')) {
$http = new dokuwiki\HTTP\DokuHTTPClient();
} else {
$http = new DokuHTTPClient();
}
$fetch = @$http->get($src);
var_dump($fetch);
Comment thread
eduardomozart marked this conversation as resolved.
Outdated
if(!$fetch) {
return array(0, 0);
}
Expand Down