Index: trunk/phase3/includes/SpecialUnwatchedpages.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | page_namespace as value |
37 | 37 | FROM $page |
38 | 38 | 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 |
40 | 40 | "; |
41 | 41 | } |
42 | 42 | |
— | — | @@ -57,10 +57,10 @@ |
58 | 58 | * constructor |
59 | 59 | */ |
60 | 60 | function wfSpecialUnwatchedpages() { |
61 | | - global $wgUser, $wgUnwatchedPagesPermission, $wgOut; |
| 61 | + global $wgUser, $wgOut; |
62 | 62 | |
63 | | - if ( ! $wgUser->isAllowed( $wgUnwatchedPagesPermission ) ) |
64 | | - return $wgOut->permissionRequired( $wgUnwatchedPagesPermission ); |
| 63 | + if ( ! $wgUser->isAllowed( 'unwatchedpages' ) ) |
| 64 | + return $wgOut->permissionRequired( 'unwatchedpages' ); |
65 | 65 | |
66 | 66 | list( $limit, $offset ) = wfCheckLimits(); |
67 | 67 | |