From e30cc874d788d49efb5e45195178c23f3ee05fbf Mon Sep 17 00:00:00 2001 From: Thomas Keil Date: Sat, 28 Apr 2007 20:12:49 +0000 Subject: "Logout" is not displayed anymore when authentication is disabled --- pages/menu.ecpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/menu.ecpp b/pages/menu.ecpp index a801a80..aebd764 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -1,6 +1,7 @@ <%pre> #include #include +#include "setup.h" <%args> active; @@ -11,6 +12,9 @@ std::string set_active; std::string set_component; <{ + + using namespace vdrlive; + set_active = active; if (!component.empty()) set_component = component; @@ -22,8 +26,10 @@ std::string set_component; ><$ tr("Timers") $> | ><$ tr("Searchtimers") $> | ><$ tr("Recordings") $> | - ><$ tr("Remote Control") $> | - <$ tr("Logout") $> + ><$ tr("Remote Control") $> +% if (LiveSetup().UseAuth()) { + | <$ tr("Logout") $> +% } % if (!component.empty()) {