mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +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\Config;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Util\Emailer;
|
||||
|
||||
/* because the fraking openpgp-php is in composer, require libs in composer
|
||||
|
@ -62,9 +63,9 @@ function securemail_settings(App &$a, &$s){
|
|||
$enable = intval(PConfig::get(local_user(), 'securemail', 'enable'));
|
||||
$publickey = PConfig::get(local_user(), 'securemail', 'pkey');
|
||||
|
||||
$t = get_markup_template('admin.tpl', 'addon/securemail/');
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/securemail/');
|
||||
|
||||
$s .= replace_macros($t, [
|
||||
$s .= Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('"Secure Mail" Settings'),
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
'$test' => L10n::t('Save and send test'), //NOTE: update also in 'post'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue