mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
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:
parent
81dd8fb295
commit
6520bd77d9
4 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ function pageheader_addon_admin(App &$a, &$s)
|
|||
if(! $words)
|
||||
$words = '';
|
||||
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', __DIR__);
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/pageheader');
|
||||
$s .= Renderer::replaceMacros($t, [
|
||||
'$title' => DI::l10n()->t('"pageheader" Settings'),
|
||||
'$phwords' => ['pageheader-words', DI::l10n()->t('Message'), $words, DI::l10n()->t('Message to display on every page on this server (or put a pageheader.html file in your docroot)')],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue