Index: trunk/phase3/includes/specials/SpecialMostlinked.php |
— | — | @@ -75,6 +75,9 @@ |
76 | 76 | function formatResult( $skin, $result ) { |
77 | 77 | global $wgLang; |
78 | 78 | $title = Title::makeTitleSafe( $result->namespace, $result->title ); |
| 79 | + if ( !$title ) { |
| 80 | + return '<!-- ' . htmlspecialchars( "Invalid title: [[$title]]" ) . ' -->'; |
| 81 | + } |
79 | 82 | $link = $skin->link( $title ); |
80 | 83 | $wlh = $this->makeWlhLink( $title, |
81 | 84 | wfMsgExt( 'nlinks', array( 'parsemag', 'escape'), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -162,6 +162,7 @@ |
163 | 163 | and user can upload |
164 | 164 | * Don't say "You need to log in to upload/move", because it's possible that |
165 | 165 | uploading/moving is disabled for registered users as well (e.g. only sysops) |
| 166 | +* (bug 18943) Handle invalid titles gracefully at Special:Mostlinked |
166 | 167 | |
167 | 168 | == API changes in 1.16 == |
168 | 169 | |