Jack Phoenix has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/326075 )
Change subject: Make DifferenceEngine's markPatrolledLink and getRevisionHeader public so that hooked functions can use them where needed ...................................................................... Make DifferenceEngine's markPatrolledLink and getRevisionHeader public so that hooked functions can use them where needed The said hooks were added to core in https://gerrit.wikimedia.org/r/#/c/298026/ . One of the many intended use cases is https://gerrit.wikimedia.org/r/#/c/326074/ which currently fatals due to these two being protected, and obviously we don't want to lose functionality when hooking into one (or more) of the aforementioned hooks. Change-Id: I260c8b57c0bb2af3a6982bd7142b112a4a023391 --- M includes/diff/DifferenceEngine.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/75/326075/1 diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index bd65fb4..736353b 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -481,7 +481,7 @@ * * @return string HTML or empty string */ - protected function markPatrolledLink() { + public function markPatrolledLink() { if ( $this->mMarkPatrolledLink === null ) { $linkInfo = $this->getMarkPatrolledLinkInfo(); // If false, there is no patrol link needed/allowed @@ -1064,7 +1064,7 @@ * * @return string HTML fragment */ - protected function getRevisionHeader( Revision $rev, $complete = '' ) { + public function getRevisionHeader( Revision $rev, $complete = '' ) { $lang = $this->getLanguage(); $user = $this->getUser(); $revtimestamp = $rev->getTimestamp(); -- To view, visit https://gerrit.wikimedia.org/r/326075 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I260c8b57c0bb2af3a6982bd7142b112a4a023391 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
