<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
return $data;
}
- $img_str = DI::httpRequest()->fetch($url, true, 4);
+ $img_str = DI::httpRequest()->fetch($url, 4);
if (!$img_str) {
return [];
$stamp1 = microtime(true);
file_put_contents($tempfile, $img_str);
- DI::profiler()->saveTimestamp($stamp1, "file", System::callstack());
+ DI::profiler()->saveTimestamp($stamp1, "file");
$data = getimagesize($tempfile);
unlink($tempfile);