Matthias Mullie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/119020

Change subject: Fix what action to look at when figuring out if restore-topic 
log type
......................................................................

Fix what action to look at when figuring out if restore-topic log type

Was incorrectly checking *-post instead of *-topic. No additional fixing is
required since both had exact same settings.

Change-Id: I5ee9c6319009004109b20710dda00306d8c422ed
---
M FlowActions.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/20/119020/1

diff --git a/FlowActions.php b/FlowActions.php
index 17b035d..42dd807 100644
--- a/FlowActions.php
+++ b/FlowActions.php
@@ -325,10 +325,10 @@
                        $previousRevision = $post->getPrevRevision( $revision );
                        if ( $previousRevision ) {
                                // Kind of log depends on the previous change 
type:
-                               // * if post was deleted, restore should go to 
deletion log
-                               // * if post was suppressed, restore should go 
to suppression log
+                               // * if topic was deleted, restore should go to 
deletion log
+                               // * if topic was suppressed, restore should go 
to suppression log
                                global $wgFlowActions;
-                               return 
$wgFlowActions[$previousRevision->getModerationState() . '-post']['log_type'];
+                               return 
$wgFlowActions[$previousRevision->getModerationState() . '-topic']['log_type'];
                        }
 
                        return '';

-- 
To view, visit https://gerrit.wikimedia.org/r/119020
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5ee9c6319009004109b20710dda00306d8c422ed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to