1
0
mirror of https://github.com/arsenetar/PrismHighlight.git synced 2024-11-21 11:29:02 +00:00

Merge pull request #1 from mrforsythexeter/master

Fix issue with all languages being set to "markup"
This commit is contained in:
Andrew Senetar 2016-11-27 19:03:02 -06:00 committed by GitHub
commit 5f5e6a7e9a

View File

@ -24,7 +24,7 @@ if ( ! defined( 'MEDIAWIKI' ) )
public static function parserHook($text, $args = array(), $parser) { public static function parserHook($text, $args = array(), $parser) {
$code_classes = ''; $code_classes = '';
$pre_args =''; $pre_args ='';
if(!isset($args['lang']) || !isset($args['language'])) if(!isset($args['lang']) && !isset($args['language']))
$args['lang'] = 'markup'; $args['lang'] = 'markup';
foreach( $args as $key => $value ){ foreach( $args as $key => $value ){
switch ($key) { switch ($key) {