Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -130,6 +130,8 @@ |
131 | 131 | * Use content language in formatting of dates in revertpage message |
132 | 132 | (rollback revert edit summary) and do not adjust for user timezone. |
133 | 133 | * (bug 29277) MediaWiki:Filepage.css is also shown on the local wiki |
| 134 | +* Make sure Backlink cache does not retrieve interwiki redirects when looking for |
| 135 | + redirects to a local page. |
134 | 136 | |
135 | 137 | === API changes in 1.19 === |
136 | 138 | * BREAKING CHANGE: action=watch now requires POST and token. |
Index: trunk/phase3/includes/BacklinkCache.php |
— | — | @@ -207,10 +207,17 @@ |
208 | 208 | switch ( $table ) { |
209 | 209 | case 'pagelinks': |
210 | 210 | case 'templatelinks': |
| 211 | + $conds = array( |
| 212 | + "{$prefix}_namespace" => $this->title->getNamespace(), |
| 213 | + "{$prefix}_title" => $this->title->getDBkey(), |
| 214 | + "page_id={$prefix}_from" |
| 215 | + ); |
| 216 | + break; |
211 | 217 | case 'redirect': |
212 | 218 | $conds = array( |
213 | 219 | "{$prefix}_namespace" => $this->title->getNamespace(), |
214 | 220 | "{$prefix}_title" => $this->title->getDBkey(), |
| 221 | + "{$prefix}_interwiki" => '', |
215 | 222 | "page_id={$prefix}_from" |
216 | 223 | ); |
217 | 224 | break; |