| Index: trunk/phase3/includes/specials/SpecialGlobalTemplateUsage.php |
| — | — | @@ -4,14 +4,14 @@ |
| 5 | 5 | * to show the usage of a template instead of a file. |
| 6 | 6 | * Special page to show global template usage. Also contains hook functions for |
| 7 | 7 | * showing usage on an template page. |
| 8 | | - * |
| | 8 | + * |
| 9 | 9 | * @author Bryan Tong Minh <bryan.tongminh@gmail.com> |
| 10 | 10 | * @author Peter Potrowl <peter017@gmail.com> |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | class SpecialGlobalTemplateUsage extends SpecialPage { |
| 14 | 14 | public function __construct() { |
| 15 | | - parent::__construct( 'GlobalTemplateUsage' ); |
| | 15 | + parent::__construct( 'Globaltemplateusage' ); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | /** |
| — | — | @@ -36,7 +36,7 @@ |
| 37 | 37 | |
| 38 | 38 | $this->showResult(); |
| 39 | 39 | } |
| 40 | | - |
| | 40 | + |
| 41 | 41 | /** |
| 42 | 42 | * Shows the search form |
| 43 | 43 | */ |
| — | — | @@ -57,7 +57,7 @@ |
| 58 | 58 | 'type' => 'submit', |
| 59 | 59 | 'value' => wfMsg( 'globaltemplateusage-ok' ) |
| 60 | 60 | ) ); |
| 61 | | - |
| | 61 | + |
| 62 | 62 | // Wrap the entire form in a nice fieldset |
| 63 | 63 | $html .= Xml::fieldSet( wfMsg( 'globaltemplateusage-text' ), $formContent ) . "\n</form>"; |
| 64 | 64 | |
| — | — | @@ -76,7 +76,7 @@ |
| 77 | 77 | if ( $wgRequest->getText( 'from' ) ) { |
| 78 | 78 | $query->setOffset( $wgRequest->getText( 'from' ) ); |
| 79 | 79 | } elseif ( $wgRequest->getText( 'to' ) ) { |
| 80 | | - $query->setOffset( $wgRequest->getText( 'to' ), true ); |
| | 80 | + $query->setOffset( $wgRequest->getText( 'to' ), true ); |
| 81 | 81 | } |
| 82 | 82 | $query->setLimit( $wgRequest->getInt( 'limit', 50 ) ); |
| 83 | 83 | |
| — | — | @@ -116,7 +116,7 @@ |
| 117 | 117 | // Bottom navbar |
| 118 | 118 | $wgOut->addHtml( $navbar ); |
| 119 | 119 | } |
| 120 | | - |
| | 120 | + |
| 121 | 121 | /** |
| 122 | 122 | * Helper to format a specific item |
| 123 | 123 | */ |
| — | — | @@ -135,7 +135,7 @@ |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * Helper function to create the navbar, stolen from wfViewPrevNext |
| 139 | | - * |
| | 139 | + * |
| 140 | 140 | * @param $query GlobalTemplateUsageQuery An executed GlobalTemplateUsageQuery object |
| 141 | 141 | * @return string Navbar HTML |
| 142 | 142 | */ |
| — | — | @@ -147,7 +147,7 @@ |
| 148 | 148 | $target = $this->target->getPrefixedText(); |
| 149 | 149 | $limit = $query->getLimit(); |
| 150 | 150 | $fmtLimit = $wgLang->formatNum( $limit ); |
| 151 | | - |
| | 151 | + |
| 152 | 152 | # Find out which strings are for the prev and which for the next links |
| 153 | 153 | $offset = $query->getOffsetString(); |
| 154 | 154 | $continue = $query->getContinueTemplateString(); |
| — | — | @@ -191,7 +191,7 @@ |
| 192 | 192 | $numLinks = array(); |
| 193 | 193 | foreach ( array( 20, 50, 100, 250, 500 ) as $num ) { |
| 194 | 194 | $fmtLimit = $wgLang->formatNum( $num ); |
| 195 | | - |
| | 195 | + |
| 196 | 196 | $q = array( 'offset' => $offset, 'limit' => $num, 'target' => $target ); |
| 197 | 197 | $lTitle = wfMsgExt( 'shown-title', array( 'parsemag', 'escape' ), $num ); |
| 198 | 198 | $attr = array( 'title' => $lTitle, 'class' => 'mw-numlink' ); |
| Index: trunk/phase3/includes/specials/SpecialGlobalFileUsage.php |
| — | — | @@ -6,7 +6,7 @@ |
| 7 | 7 | |
| 8 | 8 | class SpecialGlobalFileUsage extends SpecialPage { |
| 9 | 9 | public function __construct() { |
| 10 | | - parent::__construct( 'GlobalFileUsage' ); |
| | 10 | + parent::__construct( 'Globalfileusage' ); |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | /** |
| — | — | @@ -33,7 +33,7 @@ |
| 34 | 34 | |
| 35 | 35 | $this->showResult(); |
| 36 | 36 | } |
| 37 | | - |
| | 37 | + |
| 38 | 38 | /** |
| 39 | 39 | * Shows the search form |
| 40 | 40 | */ |
| — | — | @@ -57,7 +57,7 @@ |
| 58 | 58 | // Filter local checkbox |
| 59 | 59 | . "\n\t<p>" . Xml::checkLabel( wfMsg( 'globalfileusage-filterlocal' ), |
| 60 | 60 | 'filterlocal', 'mw-filterlocal', $this->filterLocal ) . '</p>'; |
| 61 | | - |
| | 61 | + |
| 62 | 62 | if ( !is_null( $this->target ) && wfFindFile( $this->target ) ) { |
| 63 | 63 | // Show the image if it exists |
| 64 | 64 | global $wgUser, $wgContLang; |
| — | — | @@ -69,7 +69,7 @@ |
| 70 | 70 | /* $handlerParams */ array(), /* $framed */ false, |
| 71 | 71 | /* $thumb */ true ); |
| 72 | 72 | } |
| 73 | | - |
| | 73 | + |
| 74 | 74 | // Wrap the entire form in a nice fieldset |
| 75 | 75 | $html .= Xml::fieldSet( wfMsg( 'globalfileusage-text' ), $formContent ) . "\n</form>"; |
| 76 | 76 | |
| — | — | @@ -147,7 +147,7 @@ |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | 150 | * Helper function to create the navbar, stolen from wfViewPrevNext |
| 151 | | - * |
| | 151 | + * |
| 152 | 152 | * @param $query GlobalUsageQuery An executed GlobalUsageQuery object |
| 153 | 153 | * @return string Navbar HTML |
| 154 | 154 | */ |
| — | — | @@ -159,7 +159,7 @@ |
| 160 | 160 | $target = $this->target->getText(); |
| 161 | 161 | $limit = $query->getLimit(); |
| 162 | 162 | $fmtLimit = $wgLang->formatNum( $limit ); |
| 163 | | - |
| | 163 | + |
| 164 | 164 | # Find out which strings are for the prev and which for the next links |
| 165 | 165 | $offset = $query->getOffsetString(); |
| 166 | 166 | $continue = $query->getContinueFileString(); |
| — | — | @@ -207,7 +207,7 @@ |
| 208 | 208 | $numLinks = array(); |
| 209 | 209 | foreach ( array( 20, 50, 100, 250, 500 ) as $num ) { |
| 210 | 210 | $fmtLimit = $wgLang->formatNum( $num ); |
| 211 | | - |
| | 211 | + |
| 212 | 212 | $q = array( 'offset' => $offset, 'limit' => $num, 'target' => $target ); |
| 213 | 213 | if ( $this->filterLocal ) |
| 214 | 214 | $q['filterlocal'] = '1'; |