r96413 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96412‎ | r96413 | r96414 >
Date:11:14, 7 September 2011
Author:svemir
Status:ok
Tags:
Comment:
remove unused alias file
always set the autoload array
Modified paths:
  • /trunk/extensions/SphinxSearch/SphinxSearch.alias.php (deleted) (history)
  • /trunk/extensions/SphinxSearch/SphinxSearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SphinxSearch/SphinxSearch.alias.php
@@ -1,55 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * Aliases for special pages
6 - *
7 - * @file
8 - * @ingroup Extensions
9 - */
10 -
11 -$specialPageAliases = array();
12 -
13 -/** English (English) */
14 -$specialPageAliases['en'] = array(
15 - 'SphinxSearch' => array( 'SphinxSearch' ),
16 -);
17 -
18 -/** Arabic (العربية) */
19 -$specialPageAliases['ar'] = array(
20 - 'SphinxSearch' => array( 'بحث_سفنكس' ),
21 -);
22 -
23 -/** Haitian (Kreyòl ayisyen) */
24 -$specialPageAliases['ht'] = array(
25 - 'SphinxSearch' => array( 'ChacheSphinks' ),
26 -);
27 -
28 -/** Interlingua (Interlingua) */
29 -$specialPageAliases['ia'] = array(
30 - 'SphinxSearch' => array( 'Recerca_Sphinx' ),
31 -);
32 -
33 -/** Japanese (日本語) */
34 -$specialPageAliases['ja'] = array(
35 - 'SphinxSearch' => array( 'Sphinx検索' ),
36 -);
37 -
38 -/** Luxembourgish (Lëtzebuergesch) */
39 -$specialPageAliases['lb'] = array(
40 - 'SphinxSearch' => array( 'Sphinx_Sich' ),
41 -);
42 -
43 -/** Macedonian (Македонски) */
44 -$specialPageAliases['mk'] = array(
45 - 'SphinxSearch' => array( 'ПребарувањеСоSphinx' ),
46 -);
47 -
48 -/** Dutch (Nederlands) */
49 -$specialPageAliases['nl'] = array(
50 - 'SphinxSearch' => array( 'SphinxZoeken' ),
51 -);
52 -
53 -/**
54 - * For backwards compatibility with MediaWiki 1.15 and earlier.
55 - */
56 -$aliases =& $specialPageAliases;
\ No newline at end of file
Index: trunk/extensions/SphinxSearch/SphinxSearch.php
@@ -21,6 +21,7 @@
2222
2323 $dir = dirname( __FILE__ ) . '/';
2424
 25+$wgAutoloadClasses[ 'SphinxMWSearch' ] = $dir . 'SphinxMWSearch.php';
2526 $wgExtensionMessagesFiles['SphinxSearch'] = $dir . 'SphinxSearch.i18n.php';
2627
2728 # To completely disable the default search and replace it with SphinxSearch,
@@ -33,7 +34,6 @@
3435 }
3536
3637 if ( $wgSearchType == 'SphinxMWSearch' ) {
37 - $wgAutoloadClasses['SphinxMWSearch'] = $dir . 'SphinxMWSearch.php';
3838 $wgDisableSearchUpdate = true;
3939 }
4040

Follow-up revisions

RevisionCommit summaryAuthorDate
r96419Remove alias file per r96413raymond12:11, 7 September 2011
r96421Revert file removal from r96413 and add $wgExtensionAliasesFiles so SphinxSea...siebrand12:28, 7 September 2011
r96422Oops. Revert r96421 which reverted r96413 and r96419. SphinxSearch once was a...siebrand12:33, 7 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96397Removing files and globals that will not be needed in version 0.8...svemir02:16, 7 September 2011

Status & tagging log