Shirayuki has uploaded a new change for review.
https://gerrit.wikimedia.org/r/84970
Change subject: Give grep a chance to find the usages
......................................................................
Give grep a chance to find the usages
Change-Id: I49f782d68a162518a894072f72535ec733d019da
---
M includes/Model/AbstractRevision.php
M templates/post.html.php
2 files changed, 6 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/70/84970/1
diff --git a/includes/Model/AbstractRevision.php
b/includes/Model/AbstractRevision.php
index 0f48a93..2ca1fee 100644
--- a/includes/Model/AbstractRevision.php
+++ b/includes/Model/AbstractRevision.php
@@ -195,6 +195,8 @@
wfDebugLog( __CLASS__, __FUNCTION__ . ':
Unreachable condition, un censored but moderated first post : ' .
$this->revId->getHex() );
$createdAt = $this->revId->getTimestampObj();
}
+
+ // Messages: flow-post-hidden-by, flow-post-deleted-by,
flow-post-censored-by
return wfMessage(
self::$perms[$this->moderationState]['content'],
$this->moderatedByUserText,
@@ -225,6 +227,7 @@
if ( $this->isAllowed( $user ) ) {
return $this->getUserTextRaw();
} else {
+ // Messages: flow-post-hidden, flow-post-deleted,
flow-post-censored
return wfMessage(
self::$perms[$this->moderationState]['usertext'] );
}
}
diff --git a/templates/post.html.php b/templates/post.html.php
index bbb1229..81fded0 100644
--- a/templates/post.html.php
+++ b/templates/post.html.php
@@ -17,9 +17,8 @@
'value' => $value,
) );
}
- // Give grep a chance to find the usages:
- // flow-post-action-censor-post, flow-post-action-delete-post,
flow-post-action-hide-post,
- // flow-post-action-restore-post
+ // Messages: flow-post-action-censor-post, flow-post-action-delete-post,
+ // flow-post-action-hide-post, flow-post-action-restore-post
$output .= Html::element( 'input', array(
'type' => 'submit',
'class' => 'mw-ui-button '.$class,
@@ -37,8 +36,7 @@
$block->getName() . '[postId]' =>
$post->getPostId()->getHex(),
)
);
- // Give grep a chance to find the usages:
- // flow-post-action-view, flow-post-action-post-history,
flow-post-action-edit-post
+ // Messages: flow-post-action-view, flow-post-action-post-history,
flow-post-action-edit-post
return Html::element( 'a',
array(
'href' => $url,
--
To view, visit https://gerrit.wikimedia.org/r/84970
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I49f782d68a162518a894072f72535ec733d019da
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Shirayuki <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits