mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
move to Renderer class
update functions calls for new Renderer class.
This commit is contained in:
parent
43f7ea1e16
commit
9079480d4a
30 changed files with 108 additions and 78 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
|
@ -164,8 +165,8 @@ function public_server_addon_admin_post(&$a)
|
|||
function public_server_addon_admin(&$a, &$o)
|
||||
{
|
||||
$token = BaseModule::getFormSecurityToken("publicserver");
|
||||
$t = get_markup_template("admin.tpl", "addon/public_server");
|
||||
$o = replace_macros($t, [
|
||||
$t = Renderer::getMarkupTemplate("admin.tpl", "addon/public_server");
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
'$form_security_token' => $token,
|
||||
'$infotext' => L10n::t('Set any of these options to 0 to deactivate it.'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue