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:
parent
fb575c257c
commit
ddb9c801af
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user