From c6df954fc00e4fdc7e2888e7dc3fe3a7c8f930e4 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Sep 2013 18:48:01 -0700 Subject: [PATCH] make displaying the language selector configurable --- include/nav.php | 2 +- view/tpl/nav.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nav.php b/include/nav.php index 626caf981..dd11f10d5 100644 --- a/include/nav.php +++ b/include/nav.php @@ -200,7 +200,7 @@ EOT; $a->page['nav'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(), - '$langselector' => lang_selector(), + '$langselector' => ((get_config('system','select_language')) ? lang_selector() : ''), '$sitelocation' => $sitelocation, '$nav' => $nav, '$banner' => $banner, diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 7c26609c3..713280808 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -148,5 +148,5 @@
  • {2} {3}
  • -
    {{$langselector}}
    +{{if $langselector}}
    {{$langselector}}
    {{/if}}