* Made a new permission for Special:Unwatchedpages, enabled by default for sysops
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 21 Dec 2005 13:31:47 +0000 (13:31 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 21 Dec 2005 13:31:47 +0000 (13:31 +0000)
includes/DefaultSettings.php
includes/QueryPage.php
includes/SpecialPage.php

index 24ba9cb..cb2afbf 100644 (file)
@@ -802,6 +802,7 @@ $wgGroupPermissions['sysop']['rollback']        = true;
 $wgGroupPermissions['sysop']['upload']          = true;
 $wgGroupPermissions['sysop']['reupload']        = true;
 $wgGroupPermissions['sysop']['reupload-shared'] = true;
+$wgGroupPermissions['sysop']['unwatchedpages'] = true;
 
 $wgGroupPermissions['bureaucrat']['userrights'] = true;
 
@@ -1388,19 +1389,6 @@ $wgUseSiteCss = true;
 /** Filter for Special:Randompage. Part of a WHERE clause */
 $wgExtraRandompageSQL = false;
 
-/**
- * Enable the Special:Unwatchedpages special page, turned off by default  since
- * most would consider this privelaged information as it could be used as a
- * list of pages to vandalize.
- */
-$wgEnableUnwatchedpages = false;
-
-/**
- * Users must have this permission to view Special:Unwatchedpages, e.g.
- * 'protect' for only allowing >sysops. '' for none
- */
-$wgUnwatchedPagesPermission = '';
-
 /** Allow the "info" action, very inefficient at the moment */
 $wgAllowPageInfo = false;
 
index 9488751..2fce868 100644 (file)
@@ -38,15 +38,13 @@ $wgQueryPages = array(
        array( 'UnusedimagesPage',              'Unusedimages'                  ),
        array( 'WantedCategoriesPage',          'Wantedcategories'              ),
        array( 'WantedPagesPage',               'Wantedpages'                   ),
+       array( 'UnwatchedPagesPage',            'Unwatchedpages'                ),
 );
 wfRunHooks( 'wgQueryPages', array( &$wgQueryPages ) );
 
 global $wgDisableCounters;
 if ( !$wgDisableCounters )
        $wgQueryPages[] = array( 'PopularPagesPage',            'Popularpages'          );
-global $wgEnableUnwatchedpages;
-if ( $wgEnableUnwatchedpages )
-       $wgQueryPages[] = array( 'UnwatchedPagesPage',          'Unwatchedpages'        );
 
 
 /**
index 737e0b4..38c2e42 100644 (file)
@@ -76,6 +76,7 @@ $wgSpecialPages = array(
        'Unlockdb'              => new SpecialPage( 'Unlockdb', 'siteadmin' ),
        'Userrights'    => new SpecialPage( 'Userrights', 'userrights' ),
        'MIMEsearch'    => new SpecialPage( 'MIMEsearch' ),
+       'Unwatchedpages' => new SpecialPage( 'Unwatchedpages', 'unwatchedpages' )
 );
 
 if ( $wgUseValidation )
@@ -93,9 +94,6 @@ if( $wgEmailAuthentication ) {
        $wgSpecialPages['Confirmemail'] = new UnlistedSpecialPage( 'Confirmemail' );
 }
 
-if ( $wgEnableUnwatchedpages )
-        $wgSpecialPages['Unwatchedpages'] = new SpecialPage( 'Unwatchedpages' );
-
 /**
  * Parent special page class, also static functions for handling the special
  * page list