Switch errormessage and filter to show 1) filters and 2) errormessage.
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 6 Aug 2008 12:59:16 +0000 (12:59 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 6 Aug 2008 12:59:16 +0000 (12:59 +0000)
Otherwise the filter hops around.

includes/specials/SpecialWhatlinkshere.php

index 2f9ca2b..65d38ec 100644 (file)
@@ -167,11 +167,13 @@ class WhatLinksHerePage {
                if( ( !$fetchlinks || !$dbr->numRows($plRes) ) && ( $hidetrans || !$dbr->numRows($tlRes) ) && ( $hideimages || !$dbr->numRows($ilRes) ) ) {
                        if ( 0 == $level ) {
                                $wgOut->addHTML( $this->whatlinkshereForm() );
-                               $errMsg = is_int($namespace) ? 'nolinkshere-ns' : 'nolinkshere';
-                               $wgOut->addWikiMsg( $errMsg, $this->target->getPrefixedText() );
+
                                // Show filters only if there are links
                                if( $hidelinks || $hidetrans || $hideredirs || $hideimages )
                                        $wgOut->addHTML( $this->getFilterPanel() );
+
+                               $errMsg = is_int($namespace) ? 'nolinkshere-ns' : 'nolinkshere';
+                               $wgOut->addWikiMsg( $errMsg, $this->target->getPrefixedText() );
                        }
                        return;
                }