X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=887ef1c1298a32e2e5840870ef56a8d4f4e5ecbe;hb=50da89d861dce3b648c8f9e5c1e4c480ee320a43;hp=525bbe9d9918a7027c91b94609c1b2e53ebb6597;hpb=47db624105182194b11f0039742deda6fc12c54d;p=friendica.git
diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php
index 525bbe9d99..887ef1c129 100644
--- a/view/theme/vier/theme.php
+++ b/view/theme/vier/theme.php
@@ -10,23 +10,24 @@
*/
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\System;
-use Friendica\Database\DBM;
-use Friendica\Model\GlobalContact;
-
-require_once "include/plugin.php";
-require_once "include/socgraph.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;
+function vier_init(App $a)
+{
$a->theme_events_in_profile = false;
- $a->set_template_engine('smarty3');
+ $a->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 +84,7 @@ function cmtBbClose(id) {
EOT;
- if ($a->is_mobile || $a->is_tablet){
+ if ($a->is_mobile || $a->is_tablet) {
$a->page['htmlhead'] .= <<< EOT