*/
public static function form($return_path = null, $register = false, $hiddens = [])
{
- $a = DI::app();
$o = '';
$noid = Config::get('system', 'no_openid');
}
if (is_null($return_path)) {
- $return_path = $a->query_string;
+ $return_path = DI::args()->getQueryString();
}
if (local_user()) {
$tpl = Renderer::getMarkupTemplate('logout.tpl');
} else {
- $a->page['htmlhead'] .= Renderer::replaceMacros(
+ DI::page()['htmlhead'] .= Renderer::replaceMacros(
Renderer::getMarkupTemplate('login_head.tpl'),
[
- '$baseurl' => $a->getBaseURL(true)
+ '$baseurl' => DI::baseUrl()->get(true)
]
);
$o .= Renderer::replaceMacros(
$tpl,
[
- '$dest_url' => DI::app()->getBaseURL(true) . '/login',
+ '$dest_url' => DI::baseUrl()->get(true) . '/login',
'$logout' => L10n::t('Logout'),
'$login' => L10n::t('Login'),