Index: trunk/extensions/LinkSearch/LinkSearch_body.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | class LinkSearchSpecialPage extends SpecialPage { |
5 | 5 | public function __construct() { |
6 | | - parent::__construct( 'Linksearch' ); |
| 6 | + parent::__construct( 'LinkSearch' ); |
7 | 7 | } |
8 | 8 | |
9 | 9 | function execute( $par ) { |
— | — | @@ -75,9 +75,9 @@ |
76 | 76 | } |
77 | 77 | |
78 | 78 | function getName() { |
79 | | - return 'Linksearch'; |
| 79 | + return 'LinkSearch'; |
80 | 80 | } |
81 | | - |
| 81 | + |
82 | 82 | /** |
83 | 83 | * Disable RSS/Atom feeds |
84 | 84 | */ |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | $encSQL = ''; |
127 | 127 | if ( isset ($this->mNs) && !$wgMiserMode ) |
128 | 128 | $encSQL = 'AND page_namespace=' . $dbr->addQuotes( $this->mNs ); |
129 | | - |
| 129 | + |
130 | 130 | $use_index = $dbr->useIndexClause( $clause ); |
131 | 131 | return |
132 | 132 | "SELECT |
Index: trunk/extensions/LinkSearch/LinkSearch.php |
— | — | @@ -12,15 +12,14 @@ |
13 | 13 | 'description' => 'Find pages with external links matching specific patterns', |
14 | 14 | 'descriptionmsg' => 'linksearch-desc', |
15 | 15 | 'url' => 'http://www.mediawiki.org/wiki/Extension:LinkSearch', |
16 | | - 'version' => '1.3', |
| 16 | + 'version' => '1.4', |
17 | 17 | ); |
18 | 18 | |
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'; |
21 | 22 | |
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'; |