Sfoglia il codice sorgente

Trigger warning with missing lang strings

master
Skylar Ittner 1 anno fa
parent
commit
37789df696
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      required.php

+ 2
- 0
required.php Vedi File

@@ -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…
Annulla
Salva