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
|
@ -139,7 +139,7 @@ function geonames_addon_settings(App $a, &$s)
|
|||
/* Get the current state of our config variable */
|
||||
$enabled = intval(DI::pConfig()->get(local_user(), 'geonames', 'enable'));
|
||||
|
||||
$t = Renderer::getMarkupTemplate('settings.tpl', __DIR__);
|
||||
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/geonames/');
|
||||
$s .= Renderer::replaceMacros($t, [
|
||||
'$title' => DI::l10n()->t('Geonames Settings'),
|
||||
'$description' => DI::l10n()->t('Replace numerical coordinates by the nearest populated location name in your posts.'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue