X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=b703173bbd9c7484044ff276b4798ba1ccd59dd5;hb=8167e75e6a213db396f2be470801c8a4fda6f0be;hp=4abc9d2a81001cb9e7d33b8a0550b8efc0a0aa98;hpb=daa8e4f9013d3ad329d3deadf8c823bae57bc171;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 4abc9d2a81..b703173bbd 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -9,17 +9,20 @@ * Description: "Vier" is a very compact and modern theme. It uses the font awesome font library: http://fortawesome.github.com/Font-Awesome/ */ -require_once("include/plugin.php"); -require_once("include/socgraph.php"); -require_once("mod/proxy.php"); +use Friendica\App; +use Friendica\Core\System; -function vier_init(&$a) { +require_once "include/plugin.php"; +require_once "include/socgraph.php"; +require_once "mod/proxy.php"; + +function vier_init(App $a) { $a->theme_events_in_profile = false; set_template_engine($a, 'smarty3'); - if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()) { + if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) { vier_community_info(); $a->page['htmlhead'] .= "\n"; @@ -36,33 +39,25 @@ function vier_init(&$a) {