瀏覽代碼

Fix issue with all languages being set to "markup"

pull/1/head
Shaun Forsyth 4 年之前
父節點
當前提交
3804f9711a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      PrismHighlight.base.php

+ 1
- 1
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…
取消
儲存