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
|
@ -49,7 +49,7 @@ function mathjax_settings(App $a, &$s)
|
|||
|
||||
$use = DI::pConfig()->get(local_user(), 'mathjax', 'use', false);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('settings.tpl', __DIR__);
|
||||
$tpl = Renderer::getMarkupTemplate('settings.tpl', 'addon/mathjax');
|
||||
$s .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => 'MathJax',
|
||||
'$description' => DI::l10n()->t('The MathJax addon renders mathematical formulae written using the LaTeX syntax surrounded by the usual $$ or an eqnarray block in the postings of your wall,network tab and private mail.'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue