X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FQueryPage.php;h=fb98bc68e64d2c5c6a40b331c763666ffb94e1cc;hb=8c3b4616cdf2bcd9c8cc1264b806c47b2523f163;hp=75dc112c2bb704e1a0f65650a02e0c8dc0ac53c3;hpb=e55a937093fe636c2d3b053cf3944074aeaf55e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 75dc112c2b..fb98bc68e6 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -25,13 +25,16 @@ $wgQueryPages = array( array( 'MostcategoriesPage', 'Mostcategories' ), array( 'MostimagesPage', 'Mostimages' ), array( 'MostlinkedCategoriesPage', 'Mostlinkedcategories' ), + array( 'SpecialMostlinkedtemplates', 'Mostlinkedtemplates' ), array( 'MostlinkedPage', 'Mostlinked' ), array( 'MostrevisionsPage', 'Mostrevisions' ), + array( 'FewestrevisionsPage', 'Fewestrevisions' ), array( 'NewPagesPage', 'Newpages' ), array( 'ShortPagesPage', 'Shortpages' ), array( 'UncategorizedCategoriesPage', 'Uncategorizedcategories' ), array( 'UncategorizedPagesPage', 'Uncategorizedpages' ), array( 'UncategorizedImagesPage', 'Uncategorizedimages' ), + array( 'UncategorizedTemplatesPage', 'Uncategorizedtemplates' ), array( 'UnusedCategoriesPage', 'Unusedcategories' ), array( 'UnusedimagesPage', 'Unusedimages' ), array( 'WantedCategoriesPage', 'Wantedcategories' ), @@ -51,7 +54,7 @@ if ( !$wgDisableCounters ) * This is a class for doing query pages; since they're almost all the same, * we factor out some of the functionality into a superclass, and let * subclasses derive from it. - * + * @addtogroup SpecialPage */ class QueryPage { /** @@ -331,7 +334,8 @@ class QueryPage { $num = $dbr->numRows($res); $this->preprocessResults( $dbr, $res ); - $sk = $wgUser->getSkin(); + + $wgOut->addHtml( XML::openElement( 'div', array('class' => 'mw-spcontent') ) ); # Top header and navigation if( $shownavigation ) { @@ -346,6 +350,7 @@ class QueryPage { # No results to show, so don't bother with "showing X of Y" etc. # -- just let the user know and give up now $wgOut->addHtml( '

' . wfMsgHtml( 'specialpage-empty' ) . '

' ); + $wgOut->addHtml( XML::closeElement( 'div' ) ); return; } } @@ -364,6 +369,8 @@ class QueryPage { if( $shownavigation ) { $wgOut->addHtml( '

' . $paging . '

' ); } + + $wgOut->addHtml( XML::closeElement( 'div' ) ); return $num; } @@ -392,7 +399,7 @@ class QueryPage { for( $i = 0; $i < $num && $row = $dbr->fetchObject( $res ); $i++ ) { $line = $this->formatResult( $skin, $row ); if( $line ) { - $attr = ( isset( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $html[] = $this->listoutput @@ -406,7 +413,7 @@ class QueryPage { $row = null; $line = $this->formatResult( $skin, $row ); if( $line ) { - $attr = ( isset( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $html[] = $this->listoutput @@ -427,11 +434,11 @@ class QueryPage { } function openList( $offset ) { - return "
    "; + return "\n
      \n"; } function closeList() { - return '
    '; + return "
\n"; } /** @@ -524,4 +531,4 @@ class QueryPage { } } -?> \ No newline at end of file +