mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
CommentFormatter: Remove old cached compatibility code
Added in 4bbfe6cb5d
.
Change-Id: I4a6b265897beb60abc2a7c1e6bfc4acc646fda56
This commit is contained in:
parent
c3844de173
commit
a38eb4fe18
|
@ -23,8 +23,6 @@ class CommentFormatter {
|
|||
];
|
||||
|
||||
protected const MARKER_COMMENT = '<!-- DiscussionTools addDiscussionTools called -->';
|
||||
// Compatibility with old cached content
|
||||
protected const REPLY_LINKS_COMMENT = '<!-- DiscussionTools addReplyLinks called -->';
|
||||
|
||||
/**
|
||||
* Get a comment parser object for a DOM element
|
||||
|
@ -52,10 +50,6 @@ class CommentFormatter {
|
|||
if ( strpos( $text, static::MARKER_COMMENT ) !== false ) {
|
||||
return;
|
||||
}
|
||||
// Compatibility with old cached content
|
||||
if ( strpos( $text, static::REPLY_LINKS_COMMENT ) !== false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$text = $text . "\n" . static::MARKER_COMMENT;
|
||||
|
||||
|
|
Loading…
Reference in a new issue