Skip to content

Commit

Permalink
Templates-Cache im korrekten Addon-Ordner (#5231)
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Jul 18, 2022
1 parent 1e19135 commit 4597dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -100,7 +100,7 @@ public static function getFilePath($templateId)
*/
public static function getTemplatesDir()
{
return rex_path::addonCache('templates');
return rex_path::addonCache('structure', 'templates');
}

public function getTemplate()
Expand Down
Expand Up @@ -50,11 +50,11 @@ public static function generateKeyMapping(): void

public static function getPath(int $id): string
{
return rex_path::addonCache('templates', $id.'.template');
return rex_path::addonCache('structure', 'templates/'.$id.'.template');
}

public static function getKeyMappingPath(): string
{
return rex_path::addonCache('templates', 'template_key_mapping.cache');
return rex_path::addonCache('structure', 'templates/template_key_mapping.cache');
}
}

0 comments on commit 4597dab

Please sign in to comment.