Page MenuHomeIn-Portal Phabricator

D251.diff
No OneTemporary

File Metadata

Created
Sat, Apr 19, 7:08 PM

D251.diff

Index: branches/5.2.x/core/units/fck/fck_eh.php
===================================================================
--- branches/5.2.x/core/units/fck/fck_eh.php
+++ branches/5.2.x/core/units/fck/fck_eh.php
@@ -243,6 +243,8 @@
*/
function OnGetsEditorStyles($event)
{
+ kUtil::safeDefine('DBG_SKIP_REPORTING', 1);
+
/** @var ThemeItem $theme */
$theme = $this->Application->recallObject('theme.current');
Index: branches/5.2.x/core/units/helpers/fck_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/fck_helper.php
+++ branches/5.2.x/core/units/helpers/fck_helper.php
@@ -541,6 +541,12 @@
$prefix = $this->Application->isAdmin ? '_FRONT_END_' : '';
$styles_css = $this->Application->HREF('index', $prefix, $url_params, 'index.php');
+
+ /** @var kCurlHelper $curl_helper */
+ $curl_helper = $this->Application->recallObject('CurlHelper');
+ $curl_helper->Send($styles_css, false);
+ $styles_css = $curl_helper->getInfo(CURLINFO_REDIRECT_URL);
+ $curl_helper->CloseConnection();
}
else {
$stylesheet_folder_url = $this->Application->BaseURL(rtrim(EDITOR_PATH, '/'));

Event Timeline