Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | public static function getEmptyTemplate($fileExtension): string |
||
57 | { |
||
58 | $langInfo = LangManager::getLangUser(); |
||
59 | $lang = $langInfo["isocode"]; |
||
60 | if (!array_key_exists($lang, self::$localPath)) { |
||
61 | $lang = "en"; |
||
62 | } |
||
63 | $templateFolder = api_get_path(SYS_PLUGIN_PATH) . "onlyoffice/assets/" . self::$localPath[$lang]; |
||
64 | |||
65 | return $templateFolder . "/" . ltrim($fileExtension, ".") . ".zip"; |
||
66 | } |
||
68 |