X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftheme%2Fvier%2Ftheme.php;h=2ffa957fe0016e54747b63b2ee0333757344912a;hb=e93fba51362a8cc212cb42542fd013ffd28b1164;hp=43b786e6e89cddc64534037ea15bd06f6debb7c5;hpb=a6fb3568f989f72164b435baafc63a174397b542;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 43b786e6e8..2ffa957fe0 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -15,20 +15,22 @@ use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\PConfig; +use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\GContact; - -require_once "mod/proxy.php"; +use Friendica\Util\Proxy as ProxyUtils; +use Friendica\Util\Strings; function vier_init(App $a) { $a->theme_events_in_profile = false; - $a->set_template_engine('smarty3'); + Renderer::setActiveTemplateEngine('smarty3'); - if (!empty($a->argv[0]) && $a->argv[0] . defaults($a->argv, 1, '') === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) { + if (!empty($a->argv[0]) && ($a->argv[0] . ($a->argv[1] ?? '')) === ('profile' . $a->user['nickname']) || $a->argv[0] === 'network' && local_user()) { vier_community_info(); $a->page['htmlhead'] .= "\n"; @@ -44,29 +46,6 @@ function vier_init(App $a) $a->page['htmlhead'] .= <<< EOT