Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1170112
D251.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Sep 27, 12:08 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Sep 28, 12:08 AM (16 h, 21 m)
Engine
blob
Format
Raw Data
Handle
758206
Attached To
D251: INP-1587 - Change stylesheet URL for CKEditor to immediately return CSS
D251.diff
View Options
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
Log In to Comment