Skip to content

Commit

Permalink
Merge pull request 'feature/default-empty' from feature/default-empty…
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Oct 11, 2024
2 parents f228a2f + 66cd62c commit d2d345b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- support tiff format for inserting
- Finnish, Hebrew, Norwegian, Slovenian empty file templates

## Changed
- used default empty template instead of en-US

## 9.3.1
## Changed
- creating and editing pdf form
Expand Down
3 changes: 2 additions & 1 deletion lib/templatemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static function getEmptyTemplate($fileName) {
*/
public static function getEmptyTemplatePath($lang, $ext) {
if (!\array_key_exists($lang, self::$localPath)) {
$lang = "en";
$lang = "default";
}

return \dirname(__DIR__) . DIRECTORY_SEPARATOR . "assets" . DIRECTORY_SEPARATOR . "document-templates" . DIRECTORY_SEPARATOR . self::$localPath[$lang] . DIRECTORY_SEPARATOR . "new" . $ext;
Expand All @@ -192,6 +192,7 @@ public static function getEmptyTemplatePath($lang, $ext) {
"cs" => "cs-CZ",
"de" => "de-DE",
"de_DE" => "de-DE",
"default" => "default",
"el" => "el-GR",
"en" => "en-US",
"en_GB" => "en-GB",
Expand Down

0 comments on commit d2d345b

Please sign in to comment.