r40823 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40822‎ | r40823 | r40824 >
Date:16:59, 14 September 2008
Author:siebrand
Status:old
Tags:
Comment:
Fix casing to make special page aliases work.
Modified paths:
  • /trunk/extensions/LinkSearch/LinkSearch.php (modified) (history)
  • /trunk/extensions/LinkSearch/LinkSearch_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LinkSearch/LinkSearch_body.php
@@ -2,7 +2,7 @@
33
44 class LinkSearchSpecialPage extends SpecialPage {
55 public function __construct() {
6 - parent::__construct( 'Linksearch' );
 6+ parent::__construct( 'LinkSearch' );
77 }
88
99 function execute( $par ) {
@@ -75,9 +75,9 @@
7676 }
7777
7878 function getName() {
79 - return 'Linksearch';
 79+ return 'LinkSearch';
8080 }
81 -
 81+
8282 /**
8383 * Disable RSS/Atom feeds
8484 */
@@ -125,7 +125,7 @@
126126 $encSQL = '';
127127 if ( isset ($this->mNs) && !$wgMiserMode )
128128 $encSQL = 'AND page_namespace=' . $dbr->addQuotes( $this->mNs );
129 -
 129+
130130 $use_index = $dbr->useIndexClause( $clause );
131131 return
132132 "SELECT
Index: trunk/extensions/LinkSearch/LinkSearch.php
@@ -12,15 +12,14 @@
1313 'description' => 'Find pages with external links matching specific patterns',
1414 'descriptionmsg' => 'linksearch-desc',
1515 'url' => 'http://www.mediawiki.org/wiki/Extension:LinkSearch',
16 - 'version' => '1.3',
 16+ 'version' => '1.4',
1717 );
1818
19 -$wgExtensionMessagesFiles['LinkSearch'] = dirname(__FILE__) . '/LinkSearch.i18n.php';
20 -$wgExtensionAliasesFiles['LinkSearch'] = dirname(__FILE__) . '/LinkSearch.alias.php';
 19+$dir = dirname(__FILE__) . '/';
 20+$wgExtensionMessagesFiles['LinkSearch'] = $dir . 'LinkSearch.i18n.php';
 21+$wgExtensionAliasesFiles['LinkSearch'] = $dir . 'LinkSearch.alias.php';
2122
22 -$wgSpecialPages['Linksearch'] = array( /*class*/ 'LinkSearchSpecialPage',
23 - /*name*/ 'Linksearch', /* permission */'', /*listed*/ true,
24 - /*function*/ false, /*file*/ false );
25 -$wgSpecialPageGroups['Linksearch'] = 'redirects';
26 -$wgAutoloadClasses['LinkSearchPage'] = dirname(__FILE__) . '/LinkSearch_body.php';
27 -$wgAutoloadClasses['LinkSearchSpecialPage'] = dirname(__FILE__) . '/LinkSearch_body.php';
 23+$wgSpecialPages['LinkSearch'] = 'LinkSearchSpecialPage';
 24+$wgSpecialPageGroups['LinkSearch'] = 'redirects';
 25+$wgAutoloadClasses['LinkSearchPage'] = $dir . 'LinkSearch_body.php';
 26+$wgAutoloadClasses['LinkSearchSpecialPage'] = $dir . 'LinkSearch_body.php';