Page MenuHomeIn-Portal Phabricator

D251.id603.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:03 AM

D251.id603.diff

Index: core/units/fck/fck_eh.php
===================================================================
--- core/units/fck/fck_eh.php
+++ 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: core/units/helpers/fck_helper.php
===================================================================
--- core/units/helpers/fck_helper.php
+++ 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() . trim(EDITOR_PATH, '/') . '/';

Event Timeline