Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2613,8 +2613,7 @@ |
2614 | 2614 | if ( $colonPos !== false ) { |
2615 | 2615 | $function = strtolower( substr( $part1, 0, $colonPos ) ); |
2616 | 2616 | if ( isset( $this->mFunctionHooks[$function] ) ) { |
2617 | | - $funcArgs = $args; |
2618 | | - array_unshift( $funcArgs, &$this, substr( $part1, $colonPos + 1 ) ); |
| 2617 | + $funcArgs = array_merge( array( &$this, substr( $part1, $colonPos + 1 ) ), $args ); |
2619 | 2618 | $result = call_user_func_array( $this->mFunctionHooks[$function], $funcArgs ); |
2620 | 2619 | $found = true; |
2621 | 2620 | if ( is_array( $result ) ) { |