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' ),
* 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 {
/**
$updated = $wgLang->timeAndDate( $tRow->qci_timestamp, true, true );
$cacheNotice = wfMsg( 'perfcachedts', $updated );
$wgOut->addMeta( 'Data-Cache-Time', $tRow->qci_timestamp );
- $wgOut->addScript( '<script language="JavaScript">var dataCacheTime = \'' . $tRow->qci_timestamp . '\';</script>' );
+ $wgOut->addInlineScript( "var dataCacheTime = '{$tRow->qci_timestamp}';" );
} else {
$cacheNotice = wfMsg( 'perfcached' );
}
$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 ) {
# 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( '<p>' . wfMsgHtml( 'specialpage-empty' ) . '</p>' );
+ $wgOut->addHtml( XML::closeElement( 'div' ) );
return;
}
}
if( $shownavigation ) {
$wgOut->addHtml( '<p>' . $paging . '</p>' );
}
+
+ $wgOut->addHtml( XML::closeElement( 'div' ) );
return $num;
}
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
- ? $format
+ ? $line
: "<li{$attr}>{$line}</li>\n";
}
}
$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
- ? $format
+ ? $line
: "<li{$attr}>{$line}</li>\n";
}
}
}
function openList( $offset ) {
- return "<ol start='" . ( $offset + 1 ) . "' class='special'>";
+ return "\n<ol start='" . ( $offset + 1 ) . "' class='special'>\n";
}
function closeList() {
- return '</ol>';
+ return "</ol>\n";
}
/**
}
}
-?>
\ No newline at end of file
+