Created
March 2, 2010 12:05
-
-
Save olleolleolle/319465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: code/SphinxSearch/SphinxSearch.js | |
| =================================================================== | |
| RCS file: /cvsroot/sphinxsearch/code/SphinxSearch/SphinxSearch.js,v | |
| retrieving revision 1.3 | |
| diff -u -r1.3 SphinxSearch.js | |
| --- code/SphinxSearch/SphinxSearch.js 17 Feb 2010 03:52:24 -0000 1.3 | |
| +++ code/SphinxSearch/SphinxSearch.js 2 Mar 2010 12:06:48 -0000 | |
| @@ -11,7 +11,7 @@ | |
| var cnt = input.form.elements.length; | |
| while (parent_fld) { | |
| - var parent_cnt = parseInt(parent_fld.value); | |
| + var parent_cnt = parseInt(parent_fld.value, 10); | |
| if (isNaN(parent_cnt)) { | |
| parent_cnt = 0; | |
| } | |
| Index: code/SphinxSearch/SphinxSearch.php | |
| =================================================================== | |
| RCS file: /cvsroot/sphinxsearch/code/SphinxSearch/SphinxSearch.php,v | |
| retrieving revision 1.20 | |
| diff -u -r1.20 SphinxSearch.php | |
| --- code/SphinxSearch/SphinxSearch.php 17 Feb 2010 04:02:38 -0000 1.20 | |
| +++ code/SphinxSearch/SphinxSearch.php 2 Mar 2010 12:06:48 -0000 | |
| @@ -4,7 +4,7 @@ | |
| if (!defined('MEDIAWIKI')) { | |
| echo <<<EOT | |
| To install SphinxSearch extension, put the following line in LocalSettings.php: | |
| -require_once( "\$IP/extensions/SphinxSearch/SphinxSearch.php" ); | |
| +require_once "\$IP/extensions/SphinxSearch/SphinxSearch.php"; | |
| EOT; | |
| exit( 1 ); | |
| @@ -42,7 +42,7 @@ | |
| # this assumes you have copied sphinxapi.php from your Sphinx | |
| # installation folder to your SphinxSearch extension folder | |
| if (!class_exists('SphinxClient')) { | |
| - require_once ( $dir . "sphinxapi.php" ); | |
| + require_once $dir . "sphinxapi.php"; | |
| } | |
| # Host and port on which searchd deamon is tunning | |
| Index: code/SphinxSearch/SphinxSearch_PersonalDict.php | |
| =================================================================== | |
| RCS file: /cvsroot/sphinxsearch/code/SphinxSearch/SphinxSearch_PersonalDict.php,v | |
| retrieving revision 1.7 | |
| diff -u -r1.7 SphinxSearch_PersonalDict.php | |
| --- code/SphinxSearch/SphinxSearch_PersonalDict.php 10 May 2008 01:41:14 -0000 1.7 | |
| +++ code/SphinxSearch/SphinxSearch_PersonalDict.php 2 Mar 2010 12:06:48 -0000 | |
| @@ -12,7 +12,7 @@ | |
| */ | |
| global $IP; | |
| -require_once($IP.'/includes/SpecialPage.php'); | |
| +require_once $IP.'/includes/SpecialPage.php'; | |
| class SphinxSearchPersonalDict extends SpecialPage | |
| { | |
| @@ -240,4 +240,3 @@ | |
| } | |
| } | |
| -?> | |
| Index: code/SphinxSearch/SphinxSearch_spell.php | |
| =================================================================== | |
| RCS file: /cvsroot/sphinxsearch/code/SphinxSearch/SphinxSearch_spell.php,v | |
| retrieving revision 1.8 | |
| diff -u -r1.8 SphinxSearch_spell.php | |
| --- code/SphinxSearch/SphinxSearch_spell.php 13 Aug 2008 03:01:27 -0000 1.8 | |
| +++ code/SphinxSearch/SphinxSearch_spell.php 2 Mar 2010 12:06:48 -0000 | |
| @@ -146,4 +146,3 @@ | |
| } | |
| } | |
| -?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! I applied the JS fix. As for the other changes, some of them were already done while cleaning up the code for MW repository.