Move heading to a more appropriate place, improves navigation for screenreader too.
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 8 May 2008 20:41:20 +0000 (20:41 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 8 May 2008 20:41:20 +0000 (20:41 +0000)
includes/SpecialSearch.php

index 2c50b49..ea1532b 100644 (file)
@@ -102,6 +102,8 @@ class SpecialSearch {
                                return;
                        }
                }
+
+               $wgOut->wrapWikiMsg( "==$1==\n", 'notitlematches' );
                if( $t->quickUserCan( 'create' ) && $t->quickUserCan( 'edit' ) ) {
                        $wgOut->addWikiMsg( 'noexactmatch', wfEscapeWikiText( $term ) );
                } else {
@@ -231,8 +233,6 @@ class SpecialSearch {
                        if( $titleMatches->numRows() ) {
                                $wgOut->wrapWikiMsg( "==$1==\n", 'titlematches' );
                                $wgOut->addHTML( $this->showMatches( $titleMatches ) );
-                       } else {
-                               $wgOut->wrapWikiMsg( "==$1==\n", 'notitlematches' );
                        }
                        $titleMatches->free();
                }