MediaWiki r33607 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r33606‎ | r33607 (on ViewVC)‎ | r33608 >
Date:16:46, 19 April 2008
Author:vasilievvv
Status:old
Tags:
Comment:
* (bug 13793) Special:Whatlinkshere filters wrong - after paginating instead of before
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialWhatlinkshere.php
@@ -99,6 +99,11 @@
100100 'pl_namespace' => $target->getNamespace(),
101101 'pl_title' => $target->getDBkey(),
102102 );
 103+ if( $this->hideredirs ) {
 104+ $plConds['page_is_redirect'] = 0;
 105+ } elseif( $this->hidelinks ) {
 106+ $plConds['page_is_redirect'] = 1;
 107+ }
103108
104109 $tlConds = array(
105110 'page_id=tl_from',
@@ -220,11 +225,6 @@
221226
222227 $wgOut->addHTML( $this->listStart() );
223228 foreach ( $rows as $row ) {
224 - if( $this->hideredirs && $row->page_is_redirect )
225 - continue;
226 - if( $this->hidelinks && ( !$row->page_is_redirect && !$row->is_template ) )
227 - continue;
228 -
229229 $nt = Title::makeTitle( $row->page_namespace, $row->page_title );
230230
231231 $wgOut->addHTML( $this->listItem( $row, $nt ) );
Index: trunk/phase3/RELEASE-NOTES
@@ -206,8 +206,8 @@
207207 * Do not display empty columns on Special:UserRights if all groups are
208208 changeable or all unchangeable
209209 * Fix fatal error on calling PAGESINCATEGORY with invalid category name
 210+* (bug 13793) Special:Whatlinkshere filters wrong - after paginating instead of before
210211
211 -
212212 === API changes in 1.13 ===
213213
214214 * Fixing main page display in meta=siteinfo

Status & tagging log

  • 15:26, 12 September 2011 Meno25 (talk | contribs) changed the status of r33607 [removed: ok added: old]