Index: trunk/extensions/Plotters/PlottersParser.php |
— | — | @@ -66,6 +66,16 @@ |
67 | 67 | $this->argumentArray["preprocessorarguments"][] = $subargumentarr; |
68 | 68 | } |
69 | 69 | } |
| 70 | + |
| 71 | + // If there are less preprocessorarguments than preprocessors, we want to ensure that we |
| 72 | + // have enough arrays, as later code will expect an array to exist for each preprocessor |
| 73 | + $preproccount = count( $this->argumentArray["preprocessors"] ); |
| 74 | + $preprocargcount = count( $this->argumentArray["preprocessorarguments"] ); |
| 75 | + if ( $preproccount > $preprocargcount ) { |
| 76 | + for ( $i = $preprocargcount; $i < $preproccount; $i++ ) { |
| 77 | + $this->argumentArray["preprocessorarguments"][] = array(); |
| 78 | + } |
| 79 | + } |
70 | 80 | } |
71 | 81 | if ( isset( $argv["script"] ) ) { |
72 | 82 | // Sanitize scripts - alphanumerics only |
Index: trunk/extensions/Plotters/Plotters.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | $wgExtensionCredits['other'][] = array( |
29 | 29 | 'path' => __FILE__, |
30 | 30 | 'name' => 'Plotter parser extension', |
31 | | - 'version' => '0.3a', |
| 31 | + 'version' => '0.4a', |
32 | 32 | 'author' => 'Ryan Lane', |
33 | 33 | 'description' => 'Allows users to create client side graphs and plots', |
34 | 34 | 'descriptionmsg' => 'plotters-desc', |
Index: trunk/extensions/Plotters/libs/fixencoding.js |
— | — | @@ -233,6 +233,6 @@ |
234 | 234 | |
235 | 235 | function fix_encoding_array( arr ) { |
236 | 236 | for ( var i = 0; i < arr.length; ++i ) { |
237 | | - arr[i] = fix_encoding( arr[i] ); |
| 237 | + fix_encoding( arr[i] ); |
238 | 238 | } |
239 | 239 | } |