From 9495e459c382190d04c29c265efe90ac171d05c4 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 25 Jan 2008 16:07:45 +0000 Subject: [PATCH] Returning EditPage::AS_HOOK_ERROR rather than false in internalAttemptSave() --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1