]> git.mxchange.org Git - friendica.git/blobdiff - doc/Addons.md
Merge pull request #6077 from nupplaphil/move_random_digits
[friendica.git] / doc / Addons.md
index f7dfcc870c72ca56a877df3503969ec37e743694..50febf7214abde7abcd9dbc1550604a82004875b 100644 (file)
@@ -160,11 +160,11 @@ In your code, like in the function addon_name_content(), load the template file
 ```php
 # load template file. first argument is the template name,
 # second is the addon path relative to friendica top folder
-$tpl = get_markup_template('mytemplate.tpl', 'addon/addon_name/');
+$tpl = Renderer::getMarkupTemplate('mytemplate.tpl', 'addon/addon_name/');
 
 # apply template. first argument is the loaded template,
 # second an array of 'name' => 'values' to pass to template
-$output = replace_macros($tpl, array(
+$output = Renderer::replaceMacros($tpl, array(
        'title' => 'My beautiful addon',
 ));
 ```