Browse Source

Fix issue with all languages being set to "markup"

pull/1/head
Shaun Forsyth 5 years ago
parent
commit
3804f9711a
  1. 2
      PrismHighlight.base.php

2
PrismHighlight.base.php

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

Loading…
Cancel
Save