Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8749
betaflag.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 12:07 AM
2014-11-22 00:07:51 (UTC+0)
Size
565 B
Referenced Files
None
Subscribers
None
betaflag.diff
View Options
diff --git a/MobileFrontend.body.php b/MobileFrontend.body.php
index d9c2661..15385bf 100644
--- a/MobileFrontend.body.php
+++ b/MobileFrontend.body.php
@@ -372,6 +372,10 @@ class ExtMobileFrontend {
public function beforePageDisplayHTML( &$out ) {
global $wgRequest, $wgUser;
wfProfileIn( __METHOD__ );
+ $beta = $wgRequest->getText( 'beta', 'no' );
+ if( $beta == 'yes' ) {
+ self::$isBetaGroupMember = true;
+ }
// Note: The WebRequest Class calls are made in this block because
// since PHP 5.1.x, all objects have their destructors called
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8266
Default Alt Text
betaflag.diff (565 B)
Attached To
Mode
T34148: MobileFrontend has no link to activate the beta functions unless you read blog.wikimedia.org
Attached
Detach File
Event Timeline
Log In to Comment