Index: trunk/extensions/DataCenter/DataCenter.page.php |
— | — | @@ -224,6 +224,13 @@ |
225 | 225 | $sub |
226 | 226 | ) { |
227 | 227 | 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 | + } |
228 | 235 | // Keeps some state between pages |
229 | 236 | self::loadState(); |
230 | 237 | // Begins output |