X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=41553cf8c4aa765795bf81d5c98dbfd48d8d1175;hb=34bc0b0c97b7ba4a29d217c33227906e2ced6a73;hp=0f81200890be8b702c22761669b2a08b731f93ac;hpb=311af3e544c7cfa247bd9f2bf374f9017e438ec7;p=friendica.git
diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php
index 0f81200890..41553cf8c4 100644
--- a/view/theme/vier/theme.php
+++ b/view/theme/vier/theme.php
@@ -11,22 +11,25 @@
use Friendica\App;
use Friendica\Content\ForumManager;
+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\DBM;
-use Friendica\Model\GlobalContact;
-
-require_once "include/plugin.php";
-require_once "mod/proxy.php";
-
-function vier_init(App $a) {
-
+use Friendica\Database\DBA;
+use Friendica\Model\Contact;
+use Friendica\Model\GContact;
+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 ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) {
+ if (!empty($a->argv[0]) && $a->argv[0] . defaults($a->argv, 1, '') === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) {
vier_community_info();
$a->page['htmlhead'] .= "\n";
@@ -83,7 +86,7 @@ function cmtBbClose(id) {
EOT;
- if ($a->is_mobile || $a->is_tablet){
+ if ($a->is_mobile || $a->is_tablet) {
$a->page['htmlhead'] .= <<< EOT