1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-08 20:21:13 +02:00

Issue #4270 Disable automatic WebP conversion in admin area.

This commit is contained in:
Cameron 2020-12-09 11:22:03 -08:00
parent fb575c257c
commit ddb9c801af
3 changed files with 7 additions and 2 deletions

View File

@ -510,7 +510,7 @@ if(!e107::getConfig()->hasData())
//DEPRECATED, BC, call e107::getPref/findPref() instead //DEPRECATED, BC, call e107::getPref/findPref() instead
$pref = e107::getPref(); $pref = e107::getPref();
if(!empty($pref['thumb_to_webp'])) if(e_ADMIN_AREA !== true && !empty($pref['thumb_to_webp']))
{ {
$tp->setConvertToWebP(true); $tp->setConvertToWebP(true);
} }

View File

@ -136,6 +136,11 @@
$this->logTime($sMarker); $this->logTime($sMarker);
} }
/**
* Replacement for $sql->db_Mark_Time()
* @param string $sMarker - a descriptive marker for the log
* @return null
*/
public function logTime($sMarker) public function logTime($sMarker)
{ {
if(!$this->active) if(!$this->active)

View File

@ -206,7 +206,7 @@ class e_thumbnail
return true; return true;
} }
if($this->_debug === true) if($this->_debug === true || defined("e_DEBUG_THUMBNAIL"))
{ {
echo "File Not Found: ".$path; echo "File Not Found: ".$path;
} }