E_SRICT; callback should have the ampersand
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 21 Jun 2008 03:21:02 +0000 (03:21 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 21 Jun 2008 03:21:02 +0000 (03:21 +0000)
includes/EditPage.php

index 67eaa5a..e861b4b 100644 (file)
@@ -753,7 +753,7 @@ class EditPage {
                        wfProfileOut( $fname );
                        return self::AS_SPAM_ERROR;
                }
-               if ( $wgFilterCallback && $wgFilterCallback( $this->mTitle, $this->textbox1, $this->section, &$this->hookError, $this->summary ) ) {
+               if ( $wgFilterCallback && $wgFilterCallback( $this->mTitle, $this->textbox1, $this->section, $this->hookError, $this->summary ) ) {
                        # Error messages or other handling should be performed by the filter function
                        wfProfileOut( "$fname-checks" );
                        wfProfileOut( $fname );