mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 10:28:50 +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
|
@ -11,6 +11,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
|
||||
function xmpp_install()
|
||||
{
|
||||
|
@ -104,9 +105,9 @@ function xmpp_login()
|
|||
|
||||
function xmpp_addon_admin(App $a, &$o)
|
||||
{
|
||||
$t = get_markup_template('admin.tpl', 'addon/xmpp/');
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', 'addon/xmpp/');
|
||||
|
||||
$o = replace_macros($t, [
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
'$bosh_proxy' => ['bosh_proxy', L10n::t('Jabber BOSH host'), Config::get('xmpp', 'bosh_proxy'), ''],
|
||||
'$central_userbase' => ['central_userbase', L10n::t('Use central userbase'), Config::get('xmpp', 'central_userbase'), L10n::t('If enabled, users will automatically login to an ejabberd server that has to be installed on this machine with synchronized credentials via the "auth_ejabberd.php" script.')],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue