dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a5db8
)
Fix big huge PHP warning error on every page when allow_call_time_pass_reference...
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 5 Apr 2006 19:54:42 +0000
(19:54 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 5 Apr 2006 19:54:42 +0000
(19:54 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
632b251
..
1775ead
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-2613,8
+2613,7
@@
class Parser
if ( $colonPos !== false ) {
$function = strtolower( substr( $part1, 0, $colonPos ) );
if ( isset( $this->mFunctionHooks[$function] ) ) {
- $funcArgs = $args;
- array_unshift( $funcArgs, &$this, substr( $part1, $colonPos + 1 ) );
+ $funcArgs = array_merge( array( &$this, substr( $part1, $colonPos + 1 ) ), $args );
$result = call_user_func_array( $this->mFunctionHooks[$function], $funcArgs );
$found = true;
if ( is_array( $result ) ) {