http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95674
Revision: 95674
Author: catrope
Date: 2011-08-29 16:06:38 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
Followup r95562: update callers to internalAttemptSave() in extensions. Thanks
to Nikerabbit for pointing out this oversight to me
Modified Paths:
--------------
trunk/extensions/Commentbox/SpecialAddComment_body.php
trunk/extensions/CreateRedirect/CreateRedirect.body.php
trunk/extensions/SemanticForms/specials/SF_FormEdit.php
trunk/extensions/TalkHere/TalkHereHooks.php
Modified: trunk/extensions/Commentbox/SpecialAddComment_body.php
===================================================================
--- trunk/extensions/Commentbox/SpecialAddComment_body.php 2011-08-29
15:50:20 UTC (rev 95673)
+++ trunk/extensions/Commentbox/SpecialAddComment_body.php 2011-08-29
16:06:38 UTC (rev 95674)
@@ -84,7 +84,8 @@
$ep->setContextTitle( $title );
$ep->importFormData( $request );
$details = array(); // Passed by ref
- $retval = $ep->internalAttemptSave( $details );
+ $status = $ep->internalAttemptSave( $details );
+ $retval = $status->value;
switch ( $retval ) {
case EditPage::AS_SUCCESS_UPDATE:
Modified: trunk/extensions/CreateRedirect/CreateRedirect.body.php
===================================================================
--- trunk/extensions/CreateRedirect/CreateRedirect.body.php 2011-08-29
15:50:20 UTC (rev 95673)
+++ trunk/extensions/CreateRedirect/CreateRedirect.body.php 2011-08-29
16:06:38 UTC (rev 95674)
@@ -125,7 +125,8 @@
}
$resultDetails = false;
- $value = $crEdit->internalAttemptSave( $resultDetails,
$wgUser->isAllowed( 'bot' ) && $wgRequest->getBool( 'bot', true ) );
+ $status = $crEdit->internalAttemptSave( $resultDetails,
$wgUser->isAllowed( 'bot' ) && $wgRequest->getBool( 'bot', true ) );
+ $value = $status->value;
if ( $value == EditPage::AS_SUCCESS_UPDATE || $value ==
EditPage::AS_SUCCESS_NEW_ARTICLE ) {
$wgOut->wrapWikiMsg(
Modified: trunk/extensions/SemanticForms/specials/SF_FormEdit.php
===================================================================
--- trunk/extensions/SemanticForms/specials/SF_FormEdit.php 2011-08-29
15:50:20 UTC (rev 95673)
+++ trunk/extensions/SemanticForms/specials/SF_FormEdit.php 2011-08-29
16:06:38 UTC (rev 95674)
@@ -307,7 +307,8 @@
// Try to save the page!
$resultDetails = array();
- $saveResultCode =
$editor->internalAttemptSave( $resultDetails );
+ $saveResult =
$editor->internalAttemptSave( $resultDetails );
+ $saveResultCode = $saveResult->value;
if ( ( $saveResultCode ==
EditPage::AS_HOOK_ERROR || $saveResultCode == EditPage::AS_HOOK_ERROR_EXPECTED
) && $redirectOnError ) {
Modified: trunk/extensions/TalkHere/TalkHereHooks.php
===================================================================
--- trunk/extensions/TalkHere/TalkHereHooks.php 2011-08-29 15:50:20 UTC (rev
95673)
+++ trunk/extensions/TalkHere/TalkHereHooks.php 2011-08-29 16:06:38 UTC (rev
95674)
@@ -333,7 +333,7 @@
public function internalAttemptSave( &$result, $bot = false ) {
$res = parent::internalAttemptSave( $result, $bot );
- $this->code = $res;
+ $this->code = $res->value;
if ( isset( $result['sectionanchor'] ) ) {
$this->sectionanchor = $result['sectionanchor'];
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs