Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1176293
D45.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
Mon, Oct 6, 2:19 PM
Size
792 B
Mime Type
text/x-diff
Expires
Tue, Oct 7, 2:19 PM (20 h, 6 m)
Engine
blob
Format
Raw Data
Handle
763069
Attached To
D45: INP-1410 - Change "adm_ListTabs" tag to respect value of section's "show_mode" parameter
D45.diff
View Options
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
@@ -366,6 +366,15 @@
}
$tab_data =& $sections_helper->getSectionData($section_name);
+ $show_mode = isset($tab_data['show_mode']) ? $tab_data['show_mode'] : smNORMAL;
+ $debug_only = ($show_mode == smDEBUG) || ($show_mode == smSUPER_ADMIN);
+
+ if ( $show_mode == smHIDE
+ || ($debug_only && !$this->Application->isDebugMode())
+ ) {
+ continue;
+ }
+
$block_params['t'] = $tab_data['url']['t'];
$block_params['pass'] = $tab_data['url']['pass'];
$block_params['title'] = $tab_data['label'];
Event Timeline
Log In to Comment