Skip to content

Commit

Permalink
Merge pull request #455 from ONLYOFFICE/refactor/document-templates-s…
Browse files Browse the repository at this point in the history
…ubmodule

Refactor/document templates submodule
  • Loading branch information
LinneyS authored Feb 19, 2024
2 parents 66df7f4 + 1e5c3dd commit 6bf22ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
rm -rf ./.github/
rm -rf ./.git/
rm ./.gitmodules
rm -rf ./assets/.git
rm -rf ./assets/document-templates/.git
cd ./appinfo
sed -i 's|<licence>apl2|<licence>agpl|' info.xml
cd $cwd
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "assets"]
path = assets
[submodule "assets/document-templates"]
path = assets/document-templates
url = https://github.com/ONLYOFFICE/document-templates
branch = main/new
2 changes: 1 addition & 1 deletion lib/templatemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function getEmptyTemplatePath($lang, $ext) {
$lang = "en";
}

return \dirname(__DIR__) . DIRECTORY_SEPARATOR . "assets" . DIRECTORY_SEPARATOR . self::$localPath[$lang] . DIRECTORY_SEPARATOR . "new" . $ext;
return \dirname(__DIR__) . DIRECTORY_SEPARATOR . "assets" . DIRECTORY_SEPARATOR . "document-templates" . DIRECTORY_SEPARATOR . self::$localPath[$lang] . DIRECTORY_SEPARATOR . "new" . $ext;
}

/**
Expand Down

0 comments on commit 6bf22ba

Please sign in to comment.