Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
92850d4482
commit
544168244c
30 changed files with 5 additions and 32 deletions
|
@ -58,7 +58,6 @@ function message_init(App $a)
|
||||||
|
|
||||||
$head_tpl = Renderer::getMarkupTemplate('message-head.tpl');
|
$head_tpl = Renderer::getMarkupTemplate('message-head.tpl');
|
||||||
DI::page()['htmlhead'] .= Renderer::replaceMacros($head_tpl, [
|
DI::page()['htmlhead'] .= Renderer::replaceMacros($head_tpl, [
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$base' => $base
|
'$base' => $base
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -178,7 +177,6 @@ function message_content(App $a)
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('msg-header.tpl');
|
$tpl = Renderer::getMarkupTemplate('msg-header.tpl');
|
||||||
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$nickname' => $a->getLoggedInUserNickname(),
|
'$nickname' => $a->getLoggedInUserNickname(),
|
||||||
'$linkurl' => DI::l10n()->t('Please enter a link URL:')
|
'$linkurl' => DI::l10n()->t('Please enter a link URL:')
|
||||||
]);
|
]);
|
||||||
|
@ -284,7 +282,6 @@ function message_content(App $a)
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('msg-header.tpl');
|
$tpl = Renderer::getMarkupTemplate('msg-header.tpl');
|
||||||
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$nickname' => $a->getLoggedInUserNickname(),
|
'$nickname' => $a->getLoggedInUserNickname(),
|
||||||
'$linkurl' => DI::l10n()->t('Please enter a link URL:')
|
'$linkurl' => DI::l10n()->t('Please enter a link URL:')
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -112,7 +112,6 @@ class Details extends BaseAdmin
|
||||||
'$page' => DI::l10n()->t('Addons'),
|
'$page' => DI::l10n()->t('Addons'),
|
||||||
'$toggle' => DI::l10n()->t('Toggle'),
|
'$toggle' => DI::l10n()->t('Toggle'),
|
||||||
'$settings' => DI::l10n()->t('Settings'),
|
'$settings' => DI::l10n()->t('Settings'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
|
|
||||||
'$addon' => $addon,
|
'$addon' => $addon,
|
||||||
'$status' => $status,
|
'$status' => $status,
|
||||||
|
|
|
@ -68,7 +68,6 @@ class Index extends BaseAdmin
|
||||||
'$page' => DI::l10n()->t('Addons'),
|
'$page' => DI::l10n()->t('Addons'),
|
||||||
'$submit' => DI::l10n()->t('Save Settings'),
|
'$submit' => DI::l10n()->t('Save Settings'),
|
||||||
'$reload' => DI::l10n()->t('Reload active addons'),
|
'$reload' => DI::l10n()->t('Reload active addons'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$function' => 'addons',
|
'$function' => 'addons',
|
||||||
'$addons' => $addons,
|
'$addons' => $addons,
|
||||||
'$pcount' => count($addons),
|
'$pcount' => count($addons),
|
||||||
|
|
|
@ -81,7 +81,6 @@ class Features extends BaseAdmin
|
||||||
$tpl = Renderer::getMarkupTemplate('admin/features.tpl');
|
$tpl = Renderer::getMarkupTemplate('admin/features.tpl');
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$form_security_token' => self::getFormSecurityToken("admin_manage_features"),
|
'$form_security_token' => self::getFormSecurityToken("admin_manage_features"),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$title' => DI::l10n()->t('Manage Additional Features'),
|
'$title' => DI::l10n()->t('Manage Additional Features'),
|
||||||
'$features' => $features,
|
'$features' => $features,
|
||||||
'$submit' => DI::l10n()->t('Save Settings'),
|
'$submit' => DI::l10n()->t('Save Settings'),
|
||||||
|
|
|
@ -80,7 +80,6 @@ class Settings extends BaseAdmin
|
||||||
'$page' => DI::l10n()->t('Logs'),
|
'$page' => DI::l10n()->t('Logs'),
|
||||||
'$submit' => DI::l10n()->t('Save Settings'),
|
'$submit' => DI::l10n()->t('Save Settings'),
|
||||||
'$clear' => DI::l10n()->t('Clear'),
|
'$clear' => DI::l10n()->t('Clear'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$logname' => DI::config()->get('system', 'logfile'),
|
'$logname' => DI::config()->get('system', 'logfile'),
|
||||||
// see /help/smarty3-templates#1_1 on any Friendica node
|
// see /help/smarty3-templates#1_1 on any Friendica node
|
||||||
'$debugging' => ['debugging', DI::l10n()->t("Enable Debugging"), DI::config()->get('system', 'debugging'), ""],
|
'$debugging' => ['debugging', DI::l10n()->t("Enable Debugging"), DI::config()->get('system', 'debugging'), ""],
|
||||||
|
|
|
@ -80,7 +80,6 @@ class View extends BaseAdmin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Renderer::replaceMacros($t, [
|
return Renderer::replaceMacros($t, [
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$title' => DI::l10n()->t('Administration'),
|
'$title' => DI::l10n()->t('Administration'),
|
||||||
'$page' => DI::l10n()->t('View Logs'),
|
'$page' => DI::l10n()->t('View Logs'),
|
||||||
'$l10n' => [
|
'$l10n' => [
|
||||||
|
|
|
@ -406,7 +406,6 @@ class Site extends BaseAdmin
|
||||||
'$relocate' => DI::l10n()->t('Relocate Node'),
|
'$relocate' => DI::l10n()->t('Relocate Node'),
|
||||||
'$relocate_msg' => DI::l10n()->t('Relocating your node enables you to change the DNS domain of this node and keep all the existing users and posts. This process takes a while and can only be started from the relocate console command like this:'),
|
'$relocate_msg' => DI::l10n()->t('Relocating your node enables you to change the DNS domain of this node and keep all the existing users and posts. This process takes a while and can only be started from the relocate console command like this:'),
|
||||||
'$relocate_cmd' => DI::l10n()->t('(Friendica directory)# bin/console relocate https://newdomain.com'),
|
'$relocate_cmd' => DI::l10n()->t('(Friendica directory)# bin/console relocate https://newdomain.com'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
|
|
||||||
// name, label, value, help string, extra data...
|
// name, label, value, help string, extra data...
|
||||||
'$sitename' => ['sitename', DI::l10n()->t('Site name'), DI::config()->get('config', 'sitename'), ''],
|
'$sitename' => ['sitename', DI::l10n()->t('Site name'), DI::config()->get('config', 'sitename'), ''],
|
||||||
|
|
|
@ -144,7 +144,6 @@ class Storage extends BaseAdmin
|
||||||
'$use' => DI::l10n()->t('Use storage backend'),
|
'$use' => DI::l10n()->t('Use storage backend'),
|
||||||
'$save_reload' => DI::l10n()->t('Save & Reload'),
|
'$save_reload' => DI::l10n()->t('Save & Reload'),
|
||||||
'$noconfig' => DI::l10n()->t('This backend doesn\'t have custom settings'),
|
'$noconfig' => DI::l10n()->t('This backend doesn\'t have custom settings'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$form_security_token' => self::getFormSecurityToken("admin_storage"),
|
'$form_security_token' => self::getFormSecurityToken("admin_storage"),
|
||||||
'$storagebackend' => $current_storage_backend instanceof ICanWriteToStorage ? $current_storage_backend::getName() : DI::l10n()->t('Database (legacy)'),
|
'$storagebackend' => $current_storage_backend instanceof ICanWriteToStorage ? $current_storage_backend::getName() : DI::l10n()->t('Database (legacy)'),
|
||||||
'$availablestorageforms' => $available_storage_forms,
|
'$availablestorageforms' => $available_storage_forms,
|
||||||
|
|
|
@ -91,7 +91,6 @@ class Details extends BaseAdmin
|
||||||
'$page' => DI::l10n()->t('Themes'),
|
'$page' => DI::l10n()->t('Themes'),
|
||||||
'$toggle' => DI::l10n()->t('Toggle'),
|
'$toggle' => DI::l10n()->t('Toggle'),
|
||||||
'$settings' => DI::l10n()->t('Settings'),
|
'$settings' => DI::l10n()->t('Settings'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$addon' => $theme,
|
'$addon' => $theme,
|
||||||
'$status' => $status,
|
'$status' => $status,
|
||||||
'$action' => $action,
|
'$action' => $action,
|
||||||
|
|
|
@ -95,7 +95,7 @@ class Embed extends BaseAdmin
|
||||||
|
|
||||||
$t = Renderer::getMarkupTemplate('admin/addons/embed.tpl');
|
$t = Renderer::getMarkupTemplate('admin/addons/embed.tpl');
|
||||||
return Renderer::replaceMacros($t, [
|
return Renderer::replaceMacros($t, [
|
||||||
'$action' => DI::baseUrl() . '/admin/themes/' . $theme . '/embed?mode=minimal',
|
'$action' => 'admin/themes/' . $theme . '/embed?mode=minimal',
|
||||||
'$form' => $admin_form,
|
'$form' => $admin_form,
|
||||||
'$form_security_token' => self::getFormSecurityToken("admin_theme_settings"),
|
'$form_security_token' => self::getFormSecurityToken("admin_theme_settings"),
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -112,7 +112,6 @@ class Index extends BaseAdmin
|
||||||
'$page' => DI::l10n()->t('Themes'),
|
'$page' => DI::l10n()->t('Themes'),
|
||||||
'$submit' => DI::l10n()->t('Save Settings'),
|
'$submit' => DI::l10n()->t('Save Settings'),
|
||||||
'$reload' => DI::l10n()->t('Reload active themes'),
|
'$reload' => DI::l10n()->t('Reload active themes'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$function' => 'themes',
|
'$function' => 'themes',
|
||||||
'$addons' => $addons,
|
'$addons' => $addons,
|
||||||
'$pcount' => count($themes),
|
'$pcount' => count($themes),
|
||||||
|
|
|
@ -220,7 +220,6 @@ class Contact extends BaseModule
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('contacts-head.tpl');
|
$tpl = Renderer::getMarkupTemplate('contacts-head.tpl');
|
||||||
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
DI::page()['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
|
@ -236,7 +236,6 @@ class Profile extends BaseModule
|
||||||
$_SESSION['return_path'] = $this->args->getQueryString();
|
$_SESSION['return_path'] = $this->args->getQueryString();
|
||||||
|
|
||||||
$this->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
|
$this->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
switch ($localRelationship->rel) {
|
switch ($localRelationship->rel) {
|
||||||
|
|
|
@ -58,7 +58,7 @@ class Localtime extends BaseModule
|
||||||
$output .= '<p>' . DI::l10n()->t('Converted localtime: %s', self::$mod_localtime) . '</p>';
|
$output .= '<p>' . DI::l10n()->t('Converted localtime: %s', self::$mod_localtime) . '</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= '<form action ="' . DI::baseUrl() . '/localtime?time=' . $time . '" method="post" >';
|
$output .= '<form action ="localtime?time=' . $time . '" method="post">';
|
||||||
$output .= '<p>' . DI::l10n()->t('Please select your timezone:') . '</p>';
|
$output .= '<p>' . DI::l10n()->t('Please select your timezone:') . '</p>';
|
||||||
$output .= Temporal::getTimezoneSelect(($_REQUEST['timezone'] ?? '') ?: Installer::DEFAULT_TZ);
|
$output .= Temporal::getTimezoneSelect(($_REQUEST['timezone'] ?? '') ?: Installer::DEFAULT_TZ);
|
||||||
$output .= '<input type="submit" name="submit" value="' . DI::l10n()->t('Submit') . '" /></form>';
|
$output .= '<input type="submit" name="submit" value="' . DI::l10n()->t('Submit') . '" /></form>';
|
||||||
|
|
|
@ -102,7 +102,7 @@ class Help extends BaseModule
|
||||||
|
|
||||||
$idNum[$level] ++;
|
$idNum[$level] ++;
|
||||||
|
|
||||||
$href = DI::baseUrl() . "/help/{$filename}#{$anchor}";
|
$href = "help/{$filename}#{$anchor}";
|
||||||
$toc .= "<li><a href=\"{$href}\">" . strip_tags($line) . "</a></li>";
|
$toc .= "<li><a href=\"{$href}\">" . strip_tags($line) . "</a></li>";
|
||||||
$id = implode("_", array_slice($idNum, 1, $level));
|
$id = implode("_", array_slice($idNum, 1, $level));
|
||||||
$line = "<a name=\"{$id}\"></a>" . $line;
|
$line = "<a name=\"{$id}\"></a>" . $line;
|
||||||
|
|
|
@ -69,7 +69,7 @@ class Home extends BaseModule
|
||||||
$customHome = $homeFilePath;
|
$customHome = $homeFilePath;
|
||||||
|
|
||||||
if (file_exists($cssFilePath)) {
|
if (file_exists($cssFilePath)) {
|
||||||
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl() . '/home.css' . '" media="all" />';
|
DI::page()->registerStylesheet('home.css', 'all');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -228,7 +228,7 @@ class Install extends BaseModule
|
||||||
'$system_url' => ['system-url',
|
'$system_url' => ['system-url',
|
||||||
$this->t('The Friendica system URL'),
|
$this->t('The Friendica system URL'),
|
||||||
(string)$baseUrl,
|
(string)$baseUrl,
|
||||||
$this->t('Overwrite this field in case the system URL determination isn\'t right, otherwise leave it as is.'),
|
$this->t("Overwrite this field in case the system URL determination isn't right, otherwise leave it as is."),
|
||||||
$this->t('Required')],
|
$this->t('Required')],
|
||||||
'$php_path' => $configCache->get('config', 'php_path'),
|
'$php_path' => $configCache->get('config', 'php_path'),
|
||||||
'$submit' => $this->t('Submit'),
|
'$submit' => $this->t('Submit'),
|
||||||
|
|
|
@ -65,7 +65,6 @@ class Create extends BaseUsers
|
||||||
'$form_security_token' => self::getFormSecurityToken('admin_users_create'),
|
'$form_security_token' => self::getFormSecurityToken('admin_users_create'),
|
||||||
|
|
||||||
// values //
|
// values //
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$query_string' => $this->args->getQueryString(),
|
'$query_string' => $this->args->getQueryString(),
|
||||||
|
|
||||||
'$newusername' => ['new_user_name', $this->t('Name'), '', $this->t('Name of the new user.')],
|
'$newusername' => ['new_user_name', $this->t('Name'), '', $this->t('Name of the new user.')],
|
||||||
|
|
|
@ -85,7 +85,6 @@ class Deleted extends BaseUsers
|
||||||
'$form_security_token' => self::getFormSecurityToken('moderation_users_deleted'),
|
'$form_security_token' => self::getFormSecurityToken('moderation_users_deleted'),
|
||||||
|
|
||||||
// values //
|
// values //
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$query_string' => $this->args->getQueryString(),
|
'$query_string' => $this->args->getQueryString(),
|
||||||
|
|
||||||
'$users' => $users,
|
'$users' => $users,
|
||||||
|
|
|
@ -168,7 +168,6 @@ class Index extends BaseUsers
|
||||||
'$form_security_token' => self::getFormSecurityToken('moderation_users'),
|
'$form_security_token' => self::getFormSecurityToken('moderation_users'),
|
||||||
|
|
||||||
// values //
|
// values //
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$query_string' => $this->args->getQueryString(),
|
'$query_string' => $this->args->getQueryString(),
|
||||||
|
|
||||||
'$users' => $users,
|
'$users' => $users,
|
||||||
|
|
|
@ -105,7 +105,6 @@ class Pending extends BaseUsers
|
||||||
'$form_security_token' => self::getFormSecurityToken('admin_users_pending'),
|
'$form_security_token' => self::getFormSecurityToken('admin_users_pending'),
|
||||||
|
|
||||||
// values //
|
// values //
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$query_string' => $this->args->getQueryString(),
|
'$query_string' => $this->args->getQueryString(),
|
||||||
|
|
||||||
'$pending' => $pending,
|
'$pending' => $pending,
|
||||||
|
|
|
@ -52,7 +52,6 @@ class NodeInfo210 extends BaseModule
|
||||||
$nodeinfo = [
|
$nodeinfo = [
|
||||||
'version' => '1.0',
|
'version' => '1.0',
|
||||||
'server' => [
|
'server' => [
|
||||||
'baseUrl' => $this->baseUrl,
|
|
||||||
'name' => $this->config->get('config', 'sitename'),
|
'name' => $this->config->get('config', 'sitename'),
|
||||||
'software' => 'friendica',
|
'software' => 'friendica',
|
||||||
'version' => App::VERSION . '-' . DB_UPDATE_VERSION,
|
'version' => App::VERSION . '-' . DB_UPDATE_VERSION,
|
||||||
|
|
|
@ -78,7 +78,6 @@ class Schedule extends BaseProfile
|
||||||
$tpl = Renderer::getMarkupTemplate('profile/schedule.tpl');
|
$tpl = Renderer::getMarkupTemplate('profile/schedule.tpl');
|
||||||
$o .= Renderer::replaceMacros($tpl, [
|
$o .= Renderer::replaceMacros($tpl, [
|
||||||
'$form_security_token' => BaseModule::getFormSecurityToken("profile_schedule"),
|
'$form_security_token' => BaseModule::getFormSecurityToken("profile_schedule"),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$title' => DI::l10n()->t('Scheduled Posts'),
|
'$title' => DI::l10n()->t('Scheduled Posts'),
|
||||||
'$nickname' => $this->parameters['nickname'] ?? '',
|
'$nickname' => $this->parameters['nickname'] ?? '',
|
||||||
'$scheduled_at' => DI::l10n()->t('Scheduled'),
|
'$scheduled_at' => DI::l10n()->t('Scheduled'),
|
||||||
|
|
|
@ -141,7 +141,6 @@ class UnkMail extends \Friendica\BaseModule
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('profile/unkmail-header.tpl');
|
$tpl = Renderer::getMarkupTemplate('profile/unkmail-header.tpl');
|
||||||
$this->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
$this->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$nickname' => $user['nickname'],
|
'$nickname' => $user['nickname'],
|
||||||
'$linkurl' => $this->l10n->t('Please enter a link URL:')
|
'$linkurl' => $this->l10n->t('Please enter a link URL:')
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -132,7 +132,6 @@ class Login extends BaseModule
|
||||||
DI::page()['htmlhead'] .= Renderer::replaceMacros(
|
DI::page()['htmlhead'] .= Renderer::replaceMacros(
|
||||||
Renderer::getMarkupTemplate('login_head.tpl'),
|
Renderer::getMarkupTemplate('login_head.tpl'),
|
||||||
[
|
[
|
||||||
'$baseurl' => DI::baseUrl()
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,6 @@ class PasswordTooLong extends \Friendica\BaseModule
|
||||||
'submit' => $this->l10n->t('Update Password'),
|
'submit' => $this->l10n->t('Update Password'),
|
||||||
],
|
],
|
||||||
|
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$form_security_token' => self::getFormSecurityToken('security/password_too_long'),
|
'$form_security_token' => self::getFormSecurityToken('security/password_too_long'),
|
||||||
'$return_url' => $request['return_url'] ?? '',
|
'$return_url' => $request['return_url'] ?? '',
|
||||||
|
|
||||||
|
|
|
@ -558,7 +558,6 @@ class Account extends BaseSettings
|
||||||
'$desc' => DI::l10n()->t("Your Identity Address is <strong>'%s'</strong> or '%s'.", $nickname . '@' . DI::baseUrl()->getHost() . DI::baseUrl()->getPath(), DI::baseUrl() . '/profile/' . $nickname),
|
'$desc' => DI::l10n()->t("Your Identity Address is <strong>'%s'</strong> or '%s'.", $nickname . '@' . DI::baseUrl()->getHost() . DI::baseUrl()->getPath(), DI::baseUrl() . '/profile/' . $nickname),
|
||||||
|
|
||||||
'$submit' => DI::l10n()->t('Save Settings'),
|
'$submit' => DI::l10n()->t('Save Settings'),
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
'$uid' => DI::userSession()->getLocalUserId(),
|
'$uid' => DI::userSession()->getLocalUserId(),
|
||||||
'$form_security_token' => self::getFormSecurityToken('settings'),
|
'$form_security_token' => self::getFormSecurityToken('settings'),
|
||||||
'$open' => $this->parameters['open'] ?? 'password',
|
'$open' => $this->parameters['open'] ?? 'password',
|
||||||
|
|
|
@ -252,7 +252,6 @@ class Display extends BaseSettings
|
||||||
'$calendar_title' => $this->t('Calendar'),
|
'$calendar_title' => $this->t('Calendar'),
|
||||||
|
|
||||||
'$form_security_token' => self::getFormSecurityToken('settings_display'),
|
'$form_security_token' => self::getFormSecurityToken('settings_display'),
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$uid' => $uid,
|
'$uid' => $uid,
|
||||||
|
|
||||||
'$theme' => ['theme', $this->t('Display Theme:'), $theme_selected, '', $themes, true],
|
'$theme' => ['theme', $this->t('Display Theme:'), $theme_selected, '', $themes, true],
|
||||||
|
|
|
@ -68,7 +68,6 @@ class OAuth extends BaseSettings
|
||||||
$tpl = Renderer::getMarkupTemplate('settings/oauth.tpl');
|
$tpl = Renderer::getMarkupTemplate('settings/oauth.tpl');
|
||||||
return Renderer::replaceMacros($tpl, [
|
return Renderer::replaceMacros($tpl, [
|
||||||
'$form_security_token' => BaseSettings::getFormSecurityToken('settings_oauth'),
|
'$form_security_token' => BaseSettings::getFormSecurityToken('settings_oauth'),
|
||||||
'$baseurl' => $this->baseUrl,
|
|
||||||
'$title' => $this->t('Connected Apps'),
|
'$title' => $this->t('Connected Apps'),
|
||||||
'$name' => $this->t('Name'),
|
'$name' => $this->t('Name'),
|
||||||
'$website' => $this->t('Home Page'),
|
'$website' => $this->t('Home Page'),
|
||||||
|
|
|
@ -208,7 +208,6 @@ class Index extends BaseSettings
|
||||||
];
|
];
|
||||||
|
|
||||||
DI::page()['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('settings/profile/index_head.tpl'), [
|
DI::page()['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('settings/profile/index_head.tpl'), [
|
||||||
'$baseurl' => DI::baseUrl(),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$personal_account = ($profile['account-type'] != User::ACCOUNT_TYPE_COMMUNITY);
|
$personal_account = ($profile['account-type'] != User::ACCOUNT_TYPE_COMMUNITY);
|
||||||
|
|
Loading…
Reference in a new issue