Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1635,6 +1635,7 @@ |
1636 | 1636 | 'historywarning', |
1637 | 1637 | 'confirmdeletetext', |
1638 | 1638 | 'actioncomplete', |
| 1639 | + 'actionfailed', |
1639 | 1640 | 'deletedtext', |
1640 | 1641 | 'deletedarticle', |
1641 | 1642 | 'suppressedarticle', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2415,6 +2415,7 @@ |
2416 | 2416 | 'confirmdeletetext' => 'You are about to delete a page along with all of its history. |
2417 | 2417 | Please confirm that you intend to do this, that you understand the consequences, and that you are doing this in accordance with [[{{MediaWiki:Policy-url}}|the policy]].', |
2418 | 2418 | 'actioncomplete' => 'Action complete', |
| 2419 | +'actionfailed' => 'Action failed', |
2419 | 2420 | 'deletedtext' => '"<nowiki>$1</nowiki>" has been deleted. |
2420 | 2421 | See $2 for a record of recent deletions.', |
2421 | 2422 | 'deletedarticle' => 'deleted "[[$1]]"', |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -266,7 +266,7 @@ |
267 | 267 | $wgAvailableRights[] = 'stablesettings'; |
268 | 268 | |
269 | 269 | # Bump this number every time you change flaggedrevs.css/flaggedrevs.js |
270 | | -$wgFlaggedRevStyleVersion = 58; |
| 270 | +$wgFlaggedRevStyleVersion = 59; |
271 | 271 | |
272 | 272 | $wgExtensionFunctions[] = 'efLoadFlaggedRevs'; |
273 | 273 | |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -39,7 +39,8 @@ |
40 | 40 | $ajaxReview = Xml::encodeJsVar( (object) array( |
41 | 41 | 'sendingMsg' => wfMsgHtml('revreview-submitting'), |
42 | 42 | 'sentMsg' => wfMsgHtml('revreview-finished'), |
43 | | - 'actioncomplete' => wfMsgHtml('actioncomplete') |
| 43 | + 'actioncomplete' => wfMsgHtml('actioncomplete'), |
| 44 | + 'actionfailed' => wfMsgHtml('actionfailed') |
44 | 45 | ) |
45 | 46 | ); |
46 | 47 | |
— | — | @@ -790,8 +791,8 @@ |
791 | 792 | /** |
792 | 793 | * When an user makes a null-edit we sometimes want to review it... |
793 | 794 | */ |
794 | | - public static function maybeNullEditReview( $article, $user, &$text, &$summary, &$m, &$a, &$b, |
795 | | - &$f, $rev, &$s, $baseId ) |
| 795 | + public static function maybeNullEditReview( $article, $user, $text, $summary, $m, $a, $b, |
| 796 | + $flags, $rev, &$status, $baseId ) |
796 | 797 | { |
797 | 798 | global $wgRequest; |
798 | 799 | # Must be in reviewable namespace |
Index: trunk/extensions/FlaggedRevs/flaggedrevs.js |
— | — | @@ -235,7 +235,8 @@ |
236 | 236 | wgAjaxReview = { |
237 | 237 | sendingMsg: "Submitting...", |
238 | 238 | sentMsg: "Submitted", |
239 | | - actioncomplete: "Action complete" |
| 239 | + actioncomplete: "Action complete", |
| 240 | + actionfailed: "Action failed" |
240 | 241 | }; |
241 | 242 | } |
242 | 243 | |
— | — | @@ -349,8 +350,10 @@ |
350 | 351 | } |
351 | 352 | if( response.indexOf('<suc#>') == 0 ) { |
352 | 353 | wgAjaxReview.unlockForm(); |
| 354 | + document.title = wgAjaxReview.actioncomplete; |
| 355 | + } else { |
| 356 | + document.title = wgAjaxReview.actionfailed; |
353 | 357 | } |
354 | | - document.title = wgAjaxReview.actioncomplete; |
355 | 358 | }; |
356 | 359 | |
357 | 360 | wgAjaxReview.onLoad = function() { |