Index: trunk/phase3/includes/Hooks.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | if (count($hook) < 1) { |
66 | 66 | throw new MWException("Empty array in hooks for " . $event . "\n"); |
67 | 67 | } else if (is_object($hook[0])) { |
68 | | - $object =& $wgHooks[$event][$index][0]; |
| 68 | + $object = $wgHooks[$event][$index][0]; |
69 | 69 | if (count($hook) < 2) { |
70 | 70 | $method = "on" . $event; |
71 | 71 | } else { |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | } else if (is_string($hook)) { # functions look like strings, too |
89 | 89 | $func = $hook; |
90 | 90 | } else if (is_object($hook)) { |
91 | | - $object =& $wgHooks[$event][$index]; |
| 91 | + $object = $wgHooks[$event][$index]; |
92 | 92 | $method = "on" . $event; |
93 | 93 | } else { |
94 | 94 | throw new MWException("Unknown datatype in hooks for " . $event . "\n"); |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | /* Call the hook. */ |
111 | 111 | wfProfileIn( $func ); |
112 | 112 | if( isset( $object ) ) { |
113 | | - $retval = call_user_func_array(array(&$object, $method), $hook_args); |
| 113 | + $retval = call_user_func_array(array($object, $method), $hook_args); |
114 | 114 | } else { |
115 | 115 | $retval = call_user_func_array($func, $hook_args); |
116 | 116 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -164,7 +164,9 @@ |
165 | 165 | * (bug 7075) List registered parser function hooks on Special:Version |
166 | 166 | * (bug 7059) Introduce "anchorencode" colon function |
167 | 167 | * Include SVN revision number in {{CURRENTVERSION}} output, where applicable |
| 168 | +* Fix bug in wfRunHooks which caused corruption of objects in the hook list |
168 | 169 | |
| 170 | + |
169 | 171 | == Languages updated == |
170 | 172 | |
171 | 173 | * Albanian (sq) |