Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1025524
D221.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
Thu, Jun 12, 9:21 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Fri, Jun 13, 9:21 PM (2 h, 1 m)
Engine
blob
Format
Raw Data
Handle
661281
Attached To
D221: INP-1561 Don't share Admin Console Menu Width across users
D221.diff
View Options
Index: branches/5.2.x/core/units/admin/admin_events_handler.php
===================================================================
--- branches/5.2.x/core/units/admin/admin_events_handler.php
+++ branches/5.2.x/core/units/admin/admin_events_handler.php
@@ -961,7 +961,7 @@
return;
}
- $this->Application->SetConfigValue('MenuFrameWidth', (int)$this->Application->GetVar('width'));
+ $this->Application->StorePersistentVar('MenuFrameWidth', (int)$this->Application->GetVar('width'));
}
/**
Index: branches/5.2.x/core/units/admin/admin_tag_processor.php
===================================================================
--- branches/5.2.x/core/units/admin/admin_tag_processor.php
+++ branches/5.2.x/core/units/admin/admin_tag_processor.php
@@ -795,7 +795,11 @@
*/
function MenuFrameWidth($params)
{
- $width = (int)$this->Application->ConfigValue('MenuFrameWidth');
+ $width = (int)$this->Application->RecallPersistentVar('MenuFrameWidth');
+
+ if ( $width <= 0 ) {
+ $width = (int)$this->Application->ConfigValue('MenuFrameWidth');
+ }
return $width > 0 ? $width : 200;
}
Event Timeline
Log In to Comment