r12195 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12194‎ | r12195 | r12196 >
Date:13:27, 21 December 2005
Author:avar
Status:old
Tags:
Comment:
* Not listing redirects
* Using the proper permission system
Modified paths:
  • /trunk/phase3/includes/SpecialUnwatchedpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUnwatchedpages.php
@@ -35,7 +35,7 @@
3636 page_namespace as value
3737 FROM $page
3838 LEFT JOIN $watchlist ON wl_namespace = page_namespace AND page_title = wl_title
39 - WHERE wl_title IS NULL
 39+ WHERE wl_title IS NULL AND page_is_redirect = 0
4040 ";
4141 }
4242
@@ -57,10 +57,10 @@
5858 * constructor
5959 */
6060 function wfSpecialUnwatchedpages() {
61 - global $wgUser, $wgUnwatchedPagesPermission, $wgOut;
 61+ global $wgUser, $wgOut;
6262
63 - if ( ! $wgUser->isAllowed( $wgUnwatchedPagesPermission ) )
64 - return $wgOut->permissionRequired( $wgUnwatchedPagesPermission );
 63+ if ( ! $wgUser->isAllowed( 'unwatchedpages' ) )
 64+ return $wgOut->permissionRequired( 'unwatchedpages' );
6565
6666 list( $limit, $offset ) = wfCheckLimits();
6767

Status & tagging log