]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Proxy.php
Bugfixing PConfig
[friendica.git] / src / Module / Proxy.php
index 3df90c53564e0c424d671a4c81210b4a87d7d7e1..1c980fe11e7fcb6d6f33341d4ea86938d9c5e408 100644 (file)
@@ -5,15 +5,11 @@
  */
 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;
 
@@ -105,13 +101,13 @@ class Proxy extends BaseModule
 
                // 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.
                }
                
@@ -161,7 +157,6 @@ class Proxy extends BaseModule
        private static function getRequestInfo()
        {
                $a = self::getApp();
-               $url = '';
                $size = 1024;
                $sizetype = '';
                
@@ -298,7 +293,7 @@ class Proxy extends BaseModule
         *
         */
        private static function responseError() {
-               header('Content-type: ' . $img->getType());
+               header('Content-type: image/png');
                echo file_get_contents('images/blank.png');
                exit();
        }