Browse Source

Merge pull request #1 from mrforsythexeter/master

Fix issue with all languages being set to "markup"
master
Andrew Senetar 2 years ago
parent
commit
5f5e6a7e9a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      PrismHighlight.base.php

+ 1
- 1
PrismHighlight.base.php View File

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

Loading…
Cancel
Save