<?php
/**
*
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
*/
/**
* SpecialShortpages extends QueryPage. It is used to return the shortest
* pages in the database.
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
*/
class ShortPagesPage extends QueryPage {
}
function getSQL() {
- $dbr =& wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_SLAVE );
$page = $dbr->tableName( 'page' );
$name = $dbr->addQuotes( $this->getName() );
$plink = $this->isCached()
? $skin->makeLinkObj( $title )
: $skin->makeKnownLinkObj( $title );
- $size = wfMsgHtml( 'nbytes', $wgLang->formatNum( htmlspecialchars( $result->value ) ) );
+ $size = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( htmlspecialchars( $result->value ) ) );
return $title->exists()
? "({$hlink}) {$dm}{$plink} {$dm}[{$size}]"
return $spp->doQuery( $offset, $limit );
}
-?>
+