r43956 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43955‎ | r43956 | r43957 >
Date:22:56, 25 November 2008
Author:yaron
Status:deferred
Tags:
Comment:
Small fixes
Modified paths:
  • /trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php (modified) (history)
  • /trunk/extensions/SemanticCompoundQueries/SCQ_Settings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticCompoundQueries/SCQ_QueryProcessor.php
@@ -26,7 +26,7 @@
2727 $sub_params = array();
2828 $sub_param = "";
2929 $uncompleted_square_brackets = 0;
30 - for ($i = 0; $i <= strlen($param); $i++) {
 30+ for ($i = 0; $i < strlen($param); $i++) {
3131 $c = $param[$i];
3232 if (($c == ';') && ($uncompleted_square_brackets <= 0)) {
3333 $sub_params[] = $sub_param;
Index: trunk/extensions/SemanticCompoundQueries/SCQ_Settings.php
@@ -26,7 +26,7 @@
2727 $wgAutoloadClasses['SCQQueryProcessor'] = $scqIP . '/SCQ_QueryProcessor.php';
2828 $wgAutoloadClasses['SCQQueryResult'] = $scqIP . '/SCQ_QueryResult.php';
2929
30 -function scqgParserFunctions () {
 30+function scqgParserFunctions() {
3131 global $wgHooks, $wgParser;
3232 if( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
3333 $wgHooks['ParserFirstCallInit'][] = 'scqgRegisterParser';

Status & tagging log