X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=43b786e6e89cddc64534037ea15bd06f6debb7c5;hb=7e761fa514d8faae76e5e0e082a6959f6d17f236;hp=298f0df57f51083d835251e4feb1ea877b0c0551;hpb=de5a0dadb0715198b9ba376e4ab79f58cedef098;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 298f0df57f..43b786e6e8 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -10,18 +10,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\System; +use Friendica\Database\DBA; +use Friendica\Model\Contact; +use Friendica\Model\GContact; -require_once "include/plugin.php"; -require_once "include/socgraph.php"; require_once "mod/proxy.php"; -function vier_init(App $a) { - +function vier_init(App $a) +{ $a->theme_events_in_profile = false; - set_template_engine($a, 'smarty3'); + $a->set_template_engine('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"; @@ -78,7 +85,7 @@ function cmtBbClose(id) { EOT; - if ($a->is_mobile || $a->is_tablet){ + if ($a->is_mobile || $a->is_tablet) { $a->page['htmlhead'] .= <<< EOT