Fix call-time-pass-reference error
authorRob Church <robchurch@users.mediawiki.org>
Sun, 7 May 2006 00:35:38 +0000 (00:35 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 7 May 2006 00:35:38 +0000 (00:35 +0000)
includes/EditPage.php

index 87483b4..a708dd4 100644 (file)
@@ -493,7 +493,7 @@ class EditPage {
                        wfProfileOut( "$fname-checks" );
                        return false;
                }
-               if ( !wfRunHooks( 'EditFilter', array( &$this, $this->textbox1, $this->section, &$this->hookError ) ) ) {
+               if ( !wfRunHooks( 'EditFilter', array( &$this, $this->textbox1, $this->section, $this->hookError ) ) ) {
                        # Error messages etc. could be handled within the hook...
                        wfProfileOut( $fname );
                        wfProfileOut( "$fname-checks" );