mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
minor warning adjustments
This commit is contained in:
@@ -319,6 +319,9 @@ class ImageController implements ContentController
|
||||
|
||||
function shouldAlwaysBeWebp()
|
||||
{
|
||||
//sanity check
|
||||
if(!$_SERVER['HTTP_ACCEPT']) return false;
|
||||
|
||||
if(defined('ALWAYS_WEBP') && ALWAYS_WEBP && strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false )
|
||||
return true;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user