Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/246259

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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SyntaxHighlight_GeSHi 
refs/changes/59/246259/1

diff --git a/SyntaxHighlight_GeSHi.class.php b/SyntaxHighlight_GeSHi.class.php
index 535e37a..a8329b2 100644
--- a/SyntaxHighlight_GeSHi.class.php
+++ b/SyntaxHighlight_GeSHi.class.php
@@ -200,7 +200,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: newchange
Gerrit-Change-Id: Iae0cfb838018fc6111feb03c22fb910314387e38
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SyntaxHighlight_GeSHi
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to