1
0
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:
Cameron
2020-12-08 18:15:08 -08:00
parent afaac88003
commit 7229aa6c50
7 changed files with 95 additions and 54 deletions

View File

@@ -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