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
|
@ -15,6 +15,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Network;
|
||||
|
@ -102,9 +103,9 @@ function fromgplus_addon_settings_post(&$a,&$b) {
|
|||
|
||||
function fromgplus_addon_admin(&$a, &$o)
|
||||
{
|
||||
$t = get_markup_template("admin.tpl", "addon/fromgplus/");
|
||||
$t = Renderer::getMarkupTemplate("admin.tpl", "addon/fromgplus/");
|
||||
|
||||
$o = replace_macros($t, [
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
'$key' => ['key', L10n::t('Key'), trim(Config::get('fromgplus', 'key')), ''],
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue