jenkins-bot has submitted this change and it was merged.
Change subject: Make SyntaxHighlight_GeSHi::highlight() public
......................................................................
Make SyntaxHighlight_GeSHi::highlight() public
So other extensions (e.g. EventLogging) can use it as a public API
instead of having to use the backwards-compat prepare() function.
Change-Id: Iae0cfb838018fc6111feb03c22fb910314387e38
---
M SyntaxHighlight_GeSHi.class.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Ori.livneh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SyntaxHighlight_GeSHi.class.php b/SyntaxHighlight_GeSHi.class.php
index 5e805c6..8021d2b 100644
--- a/SyntaxHighlight_GeSHi.class.php
+++ b/SyntaxHighlight_GeSHi.class.php
@@ -201,7 +201,7 @@
* @return Status Status object, with HTML representing the highlighted
* code as its value.
*/
- protected static function highlight( $code, $lang = null, $args =
array() ) {
+ public static function highlight( $code, $lang = null, $args = array()
) {
global $wgPygmentizePath;
$status = new Status;
--
To view, visit https://gerrit.wikimedia.org/r/246259
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iae0cfb838018fc6111feb03c22fb910314387e38
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SyntaxHighlight_GeSHi
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits