https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115486
Revision: 115486
Author: svemir
Date: 2012-06-07 12:13:59 +0000 (Thu, 07 Jun 2012)
Log Message:
-----------
fix a typo in option name
Modified Paths:
--------------
trunk/extensions/SphinxSearch/SphinxSearch_setup.php
Modified: trunk/extensions/SphinxSearch/SphinxSearch_setup.php
===================================================================
--- trunk/extensions/SphinxSearch/SphinxSearch_setup.php 2012-06-07
11:39:53 UTC (rev 115485)
+++ trunk/extensions/SphinxSearch/SphinxSearch_setup.php 2012-06-07
12:13:59 UTC (rev 115486)
@@ -24,7 +24,7 @@
/* Override parameters setup becuase we do not need some of the default
ones */
protected function addDefaultParams() {
- $this->addOption( 'spinxconf', 'Location of Sphinx
configuration file', true, true );
+ $this->addOption( 'sphinxconf', 'Location of Sphinx
configuration file', true, true );
$this->addOption( 'indexer', 'Full path to Sphinx indexer if
not in the path', false, true );
$this->addOption( 'useindex', 'Sphinx index to use (defaults to
wiki_main)', false, true );
$this->addOption( 'maxwords', 'Maximum number of words to
extract (defaults to 10000)', false, true );
@@ -36,7 +36,7 @@
$max_words = intval( $this->getOption( 'maxwords', 10000 ) );
$indexer = wfEscapeShellArg( $this->getOption( 'indexer',
'indexer' ) );
$index = wfEscapeShellArg( $this->getOption( 'useindex',
'wiki_main' ) );
- $conf = wfEscapeShellArg( $this->getOption( 'spinxconf' ) );
+ $conf = wfEscapeShellArg( $this->getOption( 'sphinxconf' ) );
$cmd = "$indexer --config $conf $index --buildstops sphinx.dic
$max_words";
$this->output( wfShellExec( $cmd, $retval ) );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs