Index: trunk/extensions/Commentbox/SpecialAddComment_body.php |
— | — | @@ -84,7 +84,8 @@ |
85 | 85 | $ep->setContextTitle( $title ); |
86 | 86 | $ep->importFormData( $request ); |
87 | 87 | $details = array(); // Passed by ref |
88 | | - $retval = $ep->internalAttemptSave( $details ); |
| 88 | + $status = $ep->internalAttemptSave( $details ); |
| 89 | + $retval = $status->value; |
89 | 90 | |
90 | 91 | switch ( $retval ) { |
91 | 92 | case EditPage::AS_SUCCESS_UPDATE: |
Index: trunk/extensions/CreateRedirect/CreateRedirect.body.php |
— | — | @@ -125,7 +125,8 @@ |
126 | 126 | } |
127 | 127 | |
128 | 128 | $resultDetails = false; |
129 | | - $value = $crEdit->internalAttemptSave( $resultDetails, $wgUser->isAllowed( 'bot' ) && $wgRequest->getBool( 'bot', true ) ); |
| 129 | + $status = $crEdit->internalAttemptSave( $resultDetails, $wgUser->isAllowed( 'bot' ) && $wgRequest->getBool( 'bot', true ) ); |
| 130 | + $value = $status->value; |
130 | 131 | |
131 | 132 | if ( $value == EditPage::AS_SUCCESS_UPDATE || $value == EditPage::AS_SUCCESS_NEW_ARTICLE ) { |
132 | 133 | $wgOut->wrapWikiMsg( |
Index: trunk/extensions/TalkHere/TalkHereHooks.php |
— | — | @@ -333,7 +333,7 @@ |
334 | 334 | |
335 | 335 | public function internalAttemptSave( &$result, $bot = false ) { |
336 | 336 | $res = parent::internalAttemptSave( $result, $bot ); |
337 | | - $this->code = $res; |
| 337 | + $this->code = $res->value; |
338 | 338 | if ( isset( $result['sectionanchor'] ) ) { |
339 | 339 | $this->sectionanchor = $result['sectionanchor']; |
340 | 340 | } |
Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -307,7 +307,8 @@ |
308 | 308 | |
309 | 309 | // Try to save the page! |
310 | 310 | $resultDetails = array(); |
311 | | - $saveResultCode = $editor->internalAttemptSave( $resultDetails ); |
| 311 | + $saveResult = $editor->internalAttemptSave( $resultDetails ); |
| 312 | + $saveResultCode = $saveResult->value; |
312 | 313 | |
313 | 314 | if ( ( $saveResultCode == EditPage::AS_HOOK_ERROR || $saveResultCode == EditPage::AS_HOOK_ERROR_EXPECTED ) && $redirectOnError ) { |
314 | 315 | |