Index: trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | $sub_params = array(); |
28 | 28 | $sub_param = ""; |
29 | 29 | $uncompleted_square_brackets = 0; |
30 | | - for ($i = 0; $i <= strlen($param); $i++) { |
| 30 | + for ($i = 0; $i < strlen($param); $i++) { |
31 | 31 | $c = $param[$i]; |
32 | 32 | if (($c == ';') && ($uncompleted_square_brackets <= 0)) { |
33 | 33 | $sub_params[] = $sub_param; |
Index: trunk/extensions/SemanticCompoundQueries/SCQ_Settings.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | $wgAutoloadClasses['SCQQueryProcessor'] = $scqIP . '/SCQ_QueryProcessor.php'; |
28 | 28 | $wgAutoloadClasses['SCQQueryResult'] = $scqIP . '/SCQ_QueryResult.php'; |
29 | 29 | |
30 | | -function scqgParserFunctions () { |
| 30 | +function scqgParserFunctions() { |
31 | 31 | global $wgHooks, $wgParser; |
32 | 32 | if( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
33 | 33 | $wgHooks['ParserFirstCallInit'][] = 'scqgRegisterParser'; |