Merge "Remove unused globals."

This commit is contained in:
jenkins-bot 2013-07-12 19:35:34 +00:00 committed by Gerrit Code Review
commit 12857eacf3
2 changed files with 1 additions and 3 deletions

View file

@ -362,8 +362,6 @@ class ChangesList extends ContextSource {
* @param $watched
*/
public function insertArticleLink( &$s, &$rc, $unpatrolled, $watched ) {
global $wgUseRCPatrol;
$params = array();
$articlelink = Linker::linkKnown(

View file

@ -2099,7 +2099,7 @@ class Title {
* @return Array list of errors
*/
private function checkReadPermissions( $action, $user, $errors, $doExpensiveQueries, $short ) {
global $wgWhitelistRead, $wgWhitelistReadRegexp, $wgRevokePermissions;
global $wgWhitelistRead, $wgWhitelistReadRegexp;
$whitelisted = false;
if ( User::isEveryoneAllowed( 'read' ) ) {