CauseFX 5 лет назад
Родитель
Сommit
cc7c52e5aa
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      api/functions/organizr-functions.php

+ 3 - 4
api/functions/organizr-functions.php

@@ -2106,13 +2106,12 @@ function getImage()
 		// Serve from the cache if it is younger than $cachetime
 		if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile) && $refresh == false) {
 			header("Content-type: image/jpeg");
-			//@readfile($cachefile);
-			//echo @curl('get', $cachefile)['content'];
-			$options = array('verify' => false);
+			@readfile($cachefile);
+			/*$options = array('verify' => false);
 			$response = Requests::get($cachefile, array(), $options);
 			if ($response->success) {
 				echo $response->body;
-			}
+			}*/
 			exit;
 		}
 		ob_start(); // Start the output buffer