Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -28,6 +28,8 @@ |
29 | 29 | * When translcuding a special page, do not let it interpret url parameters. |
30 | 30 | * (bug 28887) Special page classes are no longer re-used during 1 request. |
31 | 31 | * New title field of Special:MovePage is now length limited on client side. |
| 32 | +* (bug 28888) Searching for something starting with a # sign no longer tells |
| 33 | + the user a page named [[:]] already exists. |
32 | 34 | |
33 | 35 | === API changes in 1.19 === |
34 | 36 | |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -370,8 +370,9 @@ |
371 | 371 | global $wgOut; |
372 | 372 | |
373 | 373 | // show direct page/create link if applicable |
| 374 | + // Check DBkey !== '' in case of fragment link only. |
374 | 375 | $messageName = null; |
375 | | - if( !is_null($t) ) { |
| 376 | + if( !is_null($t) && $t->getDBkey() !== '' ) { |
376 | 377 | if( $t->isKnown() ) { |
377 | 378 | $messageName = 'searchmenu-exists'; |
378 | 379 | } elseif( $t->userCan( 'create' ) ) { |