Page MenuHomeIn-Portal Phabricator

D221.diff
No OneTemporary

File Metadata

Created
Sat, Apr 19, 7:31 PM

D221.diff

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