From 7ee0aa354007b63c01416e0b083c75a10a8e5a93 Mon Sep 17 00:00:00 2001 From: thnilsen Date: Fri, 7 Dec 2018 22:41:23 +0100 Subject: [PATCH] Removed redundant code - $tg_user was no longer used for validating if a subscriber was logged in or not, as this has been moved to a $_SESSION variable. --- template.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/template.php b/template.php index 25b673c..98d8361 100644 --- a/template.php +++ b/template.php @@ -9,8 +9,6 @@ $some = array(_("Some systems are experiencing major outages"), _("Some systems $all = array(_("Our systems are experiencing major outages."), _("Our systems are experiencing minor outages"), _("Our systems are under maintenance"), _("All systems operational")); $permissions = array(_("Super admin"), _("Admin"), _("Editor")); -require_once("classes/telegram.php"); - /** * Class that encapsulates methods to render header and footer */ @@ -23,10 +21,6 @@ class Template{ public static function render_header($page_name, $admin = false){ if (!$admin) { - - $telegram = new Telegram(); - $tg_user = $telegram->getTelegramUserData(); // TODO Is this needed any longer? - // Create subscriber menu sections for later inclusion // Check if we are on admin menu, if so do not display $arr_url = explode("/", $_SERVER['PHP_SELF']);