mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Preparations for WebP conversions. e107::title() added to eventually replace defining e_PAGETITLE.
This commit is contained in:
@@ -3839,7 +3839,7 @@ class e_parser
|
||||
|
||||
protected $bootstrap = null;
|
||||
protected $fontawesome = null;
|
||||
|
||||
protected $convertToWebp = false;
|
||||
|
||||
protected $removedList = array();
|
||||
protected $nodesToDelete = array();
|
||||
@@ -3949,6 +3949,11 @@ class e_parser
|
||||
$this->staticUrl = e_HTTP_STATIC;
|
||||
}
|
||||
|
||||
// if(e107::pref('core', 'thumb_to_webp', false))
|
||||
{
|
||||
$this->convertToWebp = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4045,6 +4050,14 @@ class e_parser
|
||||
$this->bootstrap = (int) $version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bool
|
||||
*/
|
||||
public function setConvertToWebp($bool)
|
||||
{
|
||||
$this->convertToWebp = (bool) $bool;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add leading zeros to a number. eg. 3 might become 000003
|
||||
|
Reference in New Issue
Block a user