summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2017-04-19 23:49:27 +0200
committerSimon Rettberg2017-04-19 23:49:27 +0200
commitede3dc1d10f0ab1b901734a76c4c2cbccc2b202f (patch)
tree0aba30c88c0e18a094b15d4cfec9eb070f60b67f /inc
parent[inc/Database] Support expanding nested arrays (diff)
downloadslx-admin-ede3dc1d10f0ab1b901734a76c4c2cbccc2b202f.tar.gz
slx-admin-ede3dc1d10f0ab1b901734a76c4c2cbccc2b202f.tar.xz
slx-admin-ede3dc1d10f0ab1b901734a76c4c2cbccc2b202f.zip
[inc/Dictionary] Add $returnTagOnMissing to :translateFile()
Diffstat (limited to 'inc')
-rw-r--r--inc/dictionary.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/dictionary.inc.php b/inc/dictionary.inc.php
index 634b1c3c..ca2811ff 100644
--- a/inc/dictionary.inc.php
+++ b/inc/dictionary.inc.php
@@ -81,11 +81,11 @@ class Dictionary
return $strings[$tag];
}
- public static function translateFile($path, $tag)
+ public static function translateFile($path, $tag, $returnTagOnMissing = false)
{
if (!class_exists('Page') || Page::getModule() === false)
return false; // We have no page - return false for now, as we're most likely running in api or install mode
- return self::translateFileModule(Page::getModule()->getIdentifier(), $path, $tag);
+ return self::translateFileModule(Page::getModule()->getIdentifier(), $path, $tag, $returnTagOnMissing);
}
public static function translate($tag, $returnTagOnMissing = false)