From 287022ef29e54b18f092172453568f99735b4b83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 21 Dec 2005 13:31:47 +0000 Subject: [PATCH] * Made a new permission for Special:Unwatchedpages, enabled by default for sysops --- includes/DefaultSettings.php | 14 +------------- includes/QueryPage.php | 4 +--- includes/SpecialPage.php | 4 +--- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 24ba9cb612..cb2afbfc2d 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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; diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 948875139a..2fce8689c4 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -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' ); /** diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 737e0b434b..38c2e4289d 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -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 -- 2.20.1