Browse Source

Fix issue with all languages being set to "markup"

pull/1/head
Shaun Forsyth 3 years ago
parent
commit
3804f9711a
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' ) )
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