* $wgDebugTidy feature
[lhc/web/wiklou.git] / includes / SpecialShortpages.php
index 0073f88..973656d 100644 (file)
@@ -1,15 +1,13 @@
 <?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 {
 
@@ -29,7 +27,7 @@ class ShortPagesPage extends QueryPage {
        }
 
        function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                $page = $dbr->tableName( 'page' );
                $name = $dbr->addQuotes( $this->getName() );
 
@@ -72,7 +70,7 @@ class ShortPagesPage extends QueryPage {
                $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}]"
@@ -91,4 +89,4 @@ function wfSpecialShortpages() {
        return $spp->doQuery( $offset, $limit );
 }
 
-?>
+