1
0
Fork 0

Template Engine with Subdirectory

- Use explicit root path for template engine
- Replace "__DIR__" calls in addons with subdirectories
- Fixes local tests, where call is made out of '/' and not '/vagrant/'
This commit is contained in:
Philipp Holzer 2020-04-26 15:45:25 +02:00
commit f5f62d3f42
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
4 changed files with 17 additions and 8 deletions

View file

@ -27,5 +27,5 @@ namespace Friendica\Render;
interface ITemplateEngine
{
public function replaceMacros($s, $v);
public function getTemplateFile($file, $root = '');
public function getTemplateFile($file, $subDir = '');
}