mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Revert "Document shortcoming of CommentFormatter::isEmptyTalkPage"
This reverts commit8245b94c4c
. No longer relevant after the revert inf96eba7
. Change-Id: Id81e68b4eaacb4b8a594ac97f75f1a7f5540b78c
This commit is contained in:
parent
14f0dce50c
commit
40f85d8852
|
@ -917,13 +917,6 @@ class CommentFormatter {
|
|||
|
||||
/**
|
||||
* Check if the talk page had no comments or headings.
|
||||
*
|
||||
* Note that the implementation here is using a double negative which
|
||||
* doesn't guarantee a *talk page*, only that the page is not not an empty
|
||||
* talk page, which could be many other types of page.
|
||||
*
|
||||
* The current use of this method is paired with
|
||||
* HookUtils::shouldDisplayEmptyState which assures we have a talk page.
|
||||
*/
|
||||
public static function isEmptyTalkPage( ParserOutput $pout ): bool {
|
||||
return $pout->getExtensionData( 'DiscussionTools-isEmptyTalkPage' ) === true;
|
||||
|
|
Loading…
Reference in a new issue