From: Roan Kattouw Date: Fri, 25 Jan 2008 16:07:45 +0000 (+0000) Subject: Returning EditPage::AS_HOOK_ERROR rather than false in internalAttemptSave() X-Git-Tag: 1.31.0-rc.0~49777 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=9495e459c382190d04c29c265efe90ac171d05c4;p=lhc%2Fweb%2Fwiklou.git Returning EditPage::AS_HOOK_ERROR rather than false in internalAttemptSave() --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 07813ede01..97a2031d45 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -811,7 +811,7 @@ class EditPage { if ( !wfRunHooks( 'EditFilterMerged', array( $this, $this->textbox1, &$this->hookError ) ) ) { # Error messages etc. could be handled within the hook... wfProfileOut( $fname ); - return false; + return self::AS_HOOK_ERROR; } $isComment = ( $this->section == 'new' ); @@ -894,7 +894,7 @@ class EditPage { if ( !wfRunHooks( 'EditFilterMerged', array( $this, $text, &$this->hookError ) ) ) { # Error messages etc. could be handled within the hook... wfProfileOut( $fname ); - return false; + return self::AS_HOOK_ERROR; } # Handle the user preference to force summaries here, but not for null edits