From 48f78bffda134ea35c7675dbab89632bfa3aa532 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 24 Aug 2011 15:31:00 +0000 Subject: [PATCH] Followup r95396 Lowercase names passed as the name to the SpecialPage constructor --- includes/specials/SpecialGlobalFileUsage.php | 14 +++++++------- .../specials/SpecialGlobalTemplateUsage.php | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/includes/specials/SpecialGlobalFileUsage.php b/includes/specials/SpecialGlobalFileUsage.php index e376ea6821..f4cf075f8e 100644 --- a/includes/specials/SpecialGlobalFileUsage.php +++ b/includes/specials/SpecialGlobalFileUsage.php @@ -6,7 +6,7 @@ class SpecialGlobalFileUsage extends SpecialPage { public function __construct() { - parent::__construct( 'GlobalFileUsage' ); + parent::__construct( 'Globalfileusage' ); } /** @@ -33,7 +33,7 @@ class SpecialGlobalFileUsage extends SpecialPage { $this->showResult(); } - + /** * Shows the search form */ @@ -57,7 +57,7 @@ class SpecialGlobalFileUsage extends SpecialPage { // Filter local checkbox . "\n\t

" . Xml::checkLabel( wfMsg( 'globalfileusage-filterlocal' ), 'filterlocal', 'mw-filterlocal', $this->filterLocal ) . '

'; - + if ( !is_null( $this->target ) && wfFindFile( $this->target ) ) { // Show the image if it exists global $wgUser, $wgContLang; @@ -69,7 +69,7 @@ class SpecialGlobalFileUsage extends SpecialPage { /* $handlerParams */ array(), /* $framed */ false, /* $thumb */ true ); } - + // Wrap the entire form in a nice fieldset $html .= Xml::fieldSet( wfMsg( 'globalfileusage-text' ), $formContent ) . "\n"; @@ -147,7 +147,7 @@ class SpecialGlobalFileUsage extends SpecialPage { /** * Helper function to create the navbar, stolen from wfViewPrevNext - * + * * @param $query GlobalUsageQuery An executed GlobalUsageQuery object * @return string Navbar HTML */ @@ -159,7 +159,7 @@ class SpecialGlobalFileUsage extends SpecialPage { $target = $this->target->getText(); $limit = $query->getLimit(); $fmtLimit = $wgLang->formatNum( $limit ); - + # Find out which strings are for the prev and which for the next links $offset = $query->getOffsetString(); $continue = $query->getContinueFileString(); @@ -207,7 +207,7 @@ class SpecialGlobalFileUsage extends SpecialPage { $numLinks = array(); foreach ( array( 20, 50, 100, 250, 500 ) as $num ) { $fmtLimit = $wgLang->formatNum( $num ); - + $q = array( 'offset' => $offset, 'limit' => $num, 'target' => $target ); if ( $this->filterLocal ) $q['filterlocal'] = '1'; diff --git a/includes/specials/SpecialGlobalTemplateUsage.php b/includes/specials/SpecialGlobalTemplateUsage.php index 5f7e8aea1f..3e8e8eda4c 100644 --- a/includes/specials/SpecialGlobalTemplateUsage.php +++ b/includes/specials/SpecialGlobalTemplateUsage.php @@ -4,14 +4,14 @@ * to show the usage of a template instead of a file. * Special page to show global template usage. Also contains hook functions for * showing usage on an template page. - * + * * @author Bryan Tong Minh * @author Peter Potrowl */ class SpecialGlobalTemplateUsage extends SpecialPage { public function __construct() { - parent::__construct( 'GlobalTemplateUsage' ); + parent::__construct( 'Globaltemplateusage' ); } /** @@ -36,7 +36,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { $this->showResult(); } - + /** * Shows the search form */ @@ -57,7 +57,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { 'type' => 'submit', 'value' => wfMsg( 'globaltemplateusage-ok' ) ) ); - + // Wrap the entire form in a nice fieldset $html .= Xml::fieldSet( wfMsg( 'globaltemplateusage-text' ), $formContent ) . "\n"; @@ -76,7 +76,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { if ( $wgRequest->getText( 'from' ) ) { $query->setOffset( $wgRequest->getText( 'from' ) ); } elseif ( $wgRequest->getText( 'to' ) ) { - $query->setOffset( $wgRequest->getText( 'to' ), true ); + $query->setOffset( $wgRequest->getText( 'to' ), true ); } $query->setLimit( $wgRequest->getInt( 'limit', 50 ) ); @@ -116,7 +116,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { // Bottom navbar $wgOut->addHtml( $navbar ); } - + /** * Helper to format a specific item */ @@ -135,7 +135,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { /** * Helper function to create the navbar, stolen from wfViewPrevNext - * + * * @param $query GlobalTemplateUsageQuery An executed GlobalTemplateUsageQuery object * @return string Navbar HTML */ @@ -147,7 +147,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { $target = $this->target->getPrefixedText(); $limit = $query->getLimit(); $fmtLimit = $wgLang->formatNum( $limit ); - + # Find out which strings are for the prev and which for the next links $offset = $query->getOffsetString(); $continue = $query->getContinueTemplateString(); @@ -191,7 +191,7 @@ class SpecialGlobalTemplateUsage extends SpecialPage { $numLinks = array(); foreach ( array( 20, 50, 100, 250, 500 ) as $num ) { $fmtLimit = $wgLang->formatNum( $num ); - + $q = array( 'offset' => $offset, 'limit' => $num, 'target' => $target ); $lTitle = wfMsgExt( 'shown-title', array( 'parsemag', 'escape' ), $num ); $attr = array( 'title' => $lTitle, 'class' => 'mw-numlink' ); -- 2.20.1