Update Photo.php

This commit is contained in:
Max Kostikov 2019-04-18 10:13:03 +02:00
parent 7a9093f634
commit eb02d01eed

View File

@ -99,8 +99,10 @@ class Photo extends \Zotlabs\Web\Controller {
}
if(! $data) {
header("Location: " . z_root() . '/' . $default);
killme();
$x = z_fetch_url(z_root() . '/' . $default, true, 0, [ 'novalidate' => true ]);
$data = ($x['success'] ? $x['body'] : EMPTY_STR);
$mimetype = 'image/png';
$modified = filemtime($default);
}
$cachecontrol = ', must-revalidate';