Remove <hr>s added to some 'empty' list messages in r20019:
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 21 Feb 2007 17:47:48 +0000 (17:47 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 21 Feb 2007 17:47:48 +0000 (17:47 +0000)
* they're ugly since there's no text above them
* they're invalid XHTML since they are not closed

includes/QueryPage.php
includes/SpecialIpblocklist.php
includes/SpecialProtectedpages.php

index bce4544..d386d12 100644 (file)
@@ -338,7 +338,7 @@ class QueryPage {
 
                        # if list is empty, show it
                        if( $num == 0 ) {
-                               $wgOut->addHTML( '<hr><p>' . wfMsgHTML('specialpage-empty') . '</p>' );
+                               $wgOut->addHTML( '<p>' . wfMsgHTML('specialpage-empty') . '</p>' );
                                return;
                        }
 
index 8fc74fe..e67d585 100644 (file)
@@ -206,7 +206,7 @@ class IPUnblockForm {
                                "</ul>";
                        $s .= $pager->getNavigationBar();
                } else {
-                       $s = '<hr><p>' . wfMsgHTML( 'ipblocklistempty' ) . '</p>';
+                       $s = '<p>' . wfMsgHTML( 'ipblocklistempty' ) . '</p>';
                }
                $wgOut->addHTML( $s );
        }
index a50096f..d4a5e0d 100644 (file)
@@ -31,7 +31,7 @@ class ProtectedPagesForm {
                                "</ul>";
                        $s .= $pager->getNavigationBar();
                } else {
-                       $s = '<hr><p>' . wfMsgHTML( 'protectedpagesempty' ) . '</p>';
+                       $s = '<p>' . wfMsgHTML( 'protectedpagesempty' ) . '</p>';
                }
                $wgOut->addHTML( $s );
        }