mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Move lessc and Emogrifier classes to RainLoopVendor namespace
This commit is contained in:
parent
253a19987f
commit
d0ec3320c8
4 changed files with 16 additions and 10 deletions
|
|
@ -9970,15 +9970,15 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
$fAdditionalDomReader = null;
|
||||
if (0 < \strlen($sHtml) && $this->Config()->Get('labs', 'emogrifier', false))
|
||||
{
|
||||
if (!\class_exists('Pelago\Emogrifier', false))
|
||||
if (!\class_exists('RainLoopVendor\Pelago\Emogrifier', false))
|
||||
{
|
||||
include_once APP_VERSION_ROOT_PATH.'app/libraries/emogrifier/Emogrifier.php';
|
||||
}
|
||||
|
||||
if (\class_exists('Pelago\Emogrifier', false))
|
||||
if (\class_exists('RainLoopVendor\Pelago\Emogrifier', false))
|
||||
{
|
||||
$fAdditionalDomReader = function ($oDom) {
|
||||
$oEmogrifier = new \Pelago\Emogrifier();
|
||||
$oEmogrifier = new \RainLoopVendor\Pelago\Emogrifier();
|
||||
$oEmogrifier->preserveEncoding = false;
|
||||
return $oEmogrifier->emogrify($oDom);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -731,7 +731,7 @@ class ServiceActions
|
|||
include_once APP_VERSION_ROOT_PATH.'app/libraries/lessphp/ctype.php';
|
||||
include_once APP_VERSION_ROOT_PATH.'app/libraries/lessphp/lessc.inc.php';
|
||||
|
||||
$oLess = new \lessc();
|
||||
$oLess = new \RainLoopVendor\lessc();
|
||||
$oLess->setFormatter('compressed');
|
||||
|
||||
$aResult = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue