瀏覽代碼

Trigger warning with missing lang strings

master
Skylar Ittner 1 年之前
父節點
當前提交
37789df696
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      required.php

+ 2
- 0
required.php 查看文件

@@ -136,6 +136,7 @@ function lang($key, $echo = true) {
if (array_key_exists($key, STRINGS)) {
$str = STRINGS[$key];
} else {
trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
$str = $key;
}

@@ -158,6 +159,7 @@ function lang2($key, $replace, $echo = true) {
if (array_key_exists($key, STRINGS)) {
$str = STRINGS[$key];
} else {
trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
$str = $key;
}


Loading…
取消
儲存