r45937 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45936‎ | r45937 | r45938 >
Date:22:18, 20 January 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Added login requirement to use system.
Modified paths:
  • /trunk/extensions/DataCenter/DataCenter.page.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataCenter/DataCenter.page.php
@@ -224,6 +224,13 @@
225225 $sub
226226 ) {
227227 global $wgOut, $wgScriptPath, $wgUser, $wgRequest;
 228+ // Checks if the user is logged in
 229+ if ( !$wgUser->isLoggedIn() ) {
 230+ // Lets them know they need to
 231+ $wgOut->loginToUse();
 232+ // Returns true so MediaWiki can move on
 233+ return true;
 234+ }
228235 // Keeps some state between pages
229236 self::loadState();
230237 // Begins output

Status & tagging log