MediaWiki r12196 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r12195‎ | r12196 (on ViewVC)‎ | r12197 >
Date:13:31, 21 December 2005
Author:avar
Status:old
Tags:
Comment:
* Made a new permission for Special:Unwatchedpages, enabled by default for sysops
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -802,6 +802,7 @@
803803 $wgGroupPermissions['sysop']['upload'] = true;
804804 $wgGroupPermissions['sysop']['reupload'] = true;
805805 $wgGroupPermissions['sysop']['reupload-shared'] = true;
 806+$wgGroupPermissions['sysop']['unwatchedpages'] = true;
806807
807808 $wgGroupPermissions['bureaucrat']['userrights'] = true;
808809
@@ -1388,19 +1389,6 @@
13891390 /** Filter for Special:Randompage. Part of a WHERE clause */
13901391 $wgExtraRandompageSQL = false;
13911392
1392 -/**
1393 - * Enable the Special:Unwatchedpages special page, turned off by default since
1394 - * most would consider this privelaged information as it could be used as a
1395 - * list of pages to vandalize.
1396 - */
1397 -$wgEnableUnwatchedpages = false;
1398 -
1399 -/**
1400 - * Users must have this permission to view Special:Unwatchedpages, e.g.
1401 - * 'protect' for only allowing >sysops. '' for none
1402 - */
1403 -$wgUnwatchedPagesPermission = '';
1404 -
14051393 /** Allow the "info" action, very inefficient at the moment */
14061394 $wgAllowPageInfo = false;
14071395
Index: trunk/phase3/includes/QueryPage.php
@@ -38,15 +38,13 @@
3939 array( 'UnusedimagesPage', 'Unusedimages' ),
4040 array( 'WantedCategoriesPage', 'Wantedcategories' ),
4141 array( 'WantedPagesPage', 'Wantedpages' ),
 42+ array( 'UnwatchedPagesPage', 'Unwatchedpages' ),
4243 );
4344 wfRunHooks( 'wgQueryPages', array( &$wgQueryPages ) );
4445
4546 global $wgDisableCounters;
4647 if ( !$wgDisableCounters )
4748 $wgQueryPages[] = array( 'PopularPagesPage', 'Popularpages' );
48 -global $wgEnableUnwatchedpages;
49 -if ( $wgEnableUnwatchedpages )
50 - $wgQueryPages[] = array( 'UnwatchedPagesPage', 'Unwatchedpages' );
5149
5250
5351 /**
Index: trunk/phase3/includes/SpecialPage.php
@@ -76,6 +76,7 @@
7777 'Unlockdb' => new SpecialPage( 'Unlockdb', 'siteadmin' ),
7878 'Userrights' => new SpecialPage( 'Userrights', 'userrights' ),
7979 'MIMEsearch' => new SpecialPage( 'MIMEsearch' ),
 80+ 'Unwatchedpages' => new SpecialPage( 'Unwatchedpages', 'unwatchedpages' )
8081 );
8182
8283 if ( $wgUseValidation )
@@ -93,9 +94,6 @@
9495 $wgSpecialPages['Confirmemail'] = new UnlistedSpecialPage( 'Confirmemail' );
9596 }
9697
97 -if ( $wgEnableUnwatchedpages )
98 - $wgSpecialPages['Unwatchedpages'] = new SpecialPage( 'Unwatchedpages' );
99 -
10098 /**
10199 * Parent special page class, also static functions for handling the special
102100 * page list

Status & tagging log

  • 01:58, 13 October 2010 ^demon (talk | contribs) changed the status of r12196 [removed: new added: old]