On 11/07/07, Andrew Garrett <andrew(a)epstone.net> wrote:
I've rewritten the hook call like so. Code review,
et cetera welcomed:
$result = null;
$hooked = false;
$hooked = wfRunHooks( 'userCan', array( &$this, &$wgUser, $action,
&$result ) );
if ( !$hooked ) {
wfProfileOut( $fname );
return $result;
}
1. Lose the temporary variable
2. Don't need to pass objects by reference any more
Rob Church