Move lessc and Emogrifier classes to RainLoopVendor namespace

This commit is contained in:
RainLoop Team 2016-06-09 20:09:34 +03:00
parent 253a19987f
commit d0ec3320c8
4 changed files with 16 additions and 10 deletions

View file

@ -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);
};

View file

@ -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();