Index: trunk/extensions/ExternalData/ED_Utils.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | static function parseParams( $params ) { |
44 | 44 | $args = Array(); |
45 | 45 | foreach ( $params as $param ) { |
46 | | - $param = preg_replace ( "/\s\s+/" , " " , $param ); // whitespace |
| 46 | + $param = preg_replace ( "/\s\s+/", ' ', $param ); // whitespace |
47 | 47 | $param_parts = explode( "=", $param, 2 ); |
48 | 48 | if ( count( $param_parts ) < 2 ) { |
49 | 49 | continue; |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | * Parses an argument of the form "a=b,c=d,..." into an array |
59 | 59 | */ |
60 | 60 | static function paramToArray( $arg, $lowercaseKeys = false, $lowercaseValues = false ) { |
61 | | - $arg = preg_replace ( "/\s\s+/" , ' ', $arg ); // whitespace |
| 61 | + $arg = preg_replace ( "/\s\s+/", ' ', $arg ); // whitespace |
62 | 62 | $keyValuePairs = explode( ',', $arg ); |
63 | 63 | $returnArray = Array(); |
64 | 64 | foreach ( $keyValuePairs as $keyValuePair ) { |
— | — | @@ -426,7 +426,6 @@ |
427 | 427 | return $page; |
428 | 428 | } |
429 | 429 | } else { |
430 | | - $row = $dbr->fetchObject( $res ); |
431 | 430 | return $row->result; |
432 | 431 | } |
433 | 432 | } |