*/
namespace Friendica\Module;
-use Friendica\App;
use Friendica\BaseModule;
-use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\System;
-use Friendica\Database\DBA;
use Friendica\Model\Photo;
use Friendica\Object\Image;
-use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Proxy as ProxyUtils;
// If there is an error then return a blank image
if ((substr($fetchResult->getReturnCode(), 0, 1) == '4') || (!$img_str)) {
- self::responseError($request);
+ self::responseError();
// stop.
}
$image = new Image($img_str, $mime);
if (!$image->isValid()) {
- self::responseError($request);
+ self::responseError();
// stop.
}
private static function getRequestInfo()
{
$a = self::getApp();
- $url = '';
$size = 1024;
$sizetype = '';
*
*/
private static function responseError() {
- header('Content-type: ' . $img->getType());
+ header('Content-type: image/png');
echo file_get_contents('images/blank.png');
exit();
}