Wrap content in class="mw-spcontent"
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 31 Aug 2008 12:58:14 +0000 (12:58 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 31 Aug 2008 12:58:14 +0000 (12:58 +0000)
includes/specials/SpecialCategories.php
includes/specials/SpecialListusers.php

index 951c222..8c2ae2b 100644 (file)
@@ -14,11 +14,13 @@ function wfSpecialCategories( $par=null ) {
        }
        $cap = new CategoryPager( $from );
        $wgOut->addHTML(
+               XML::openElement( 'div', array('class' => 'mw-spcontent') ) .
                wfMsgExt( 'categoriespagetext', array( 'parse' ) ) .
                $cap->getStartForm( $from ) .
                $cap->getNavigationBar() .
                '<ul>' . $cap->getBody() . '</ul>' .
-               $cap->getNavigationBar()
+               $cap->getNavigationBar() .
+               XML::closeElement( 'div' )
        );
 }
 
index 6cc29db..4a76c0c 100644 (file)
@@ -236,7 +236,8 @@ function wfSpecialListusers( $par = null ) {
 
        # getBody() first to check, if empty
        $usersbody = $up->getBody();
-       $s = $up->getPageHeader();
+       $s = XML::openElement( 'div', array('class' => 'mw-spcontent') );
+       $s .= $up->getPageHeader();
        if( $usersbody ) {
                $s .=   $up->getNavigationBar();
                $s .=   '<ul>' . $usersbody . '</ul>';
@@ -244,6 +245,6 @@ function wfSpecialListusers( $par = null ) {
        } else {
                $s .=   '<p>' . wfMsgHTML('listusers-noresult') . '</p>';
        };
-
+       $s .= XML::closeElement( 'div' );
        $wgOut->addHTML( $s );
 }