From a2dc71753ef250edade07a0bd68b19759f536c1f Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 31 May 2017 09:32:11 +0200 Subject: [PATCH] Rename Smarty variable to avoid confusion --- controllers/FrontController.php | 14 +++++++------- templates/inc/header.tpl | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 82eb827..3318048 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -110,13 +110,13 @@ class FrontController $response, 'index.tpl', [ - 'config' => $this->config, - 'class' => 'index', - 'description' => 'Easily download videos from Youtube, Dailymotion, Vimeo and other websites.', - 'domain' => $uri->getScheme().'://'.$uri->getAuthority(), - 'canonical' => $this->getCanonicalUrl($request), - 'locales' => $this->localeManager->getSupportedLocales(), - 'locale' => $this->localeManager->getLocale(), + 'config' => $this->config, + 'class' => 'index', + 'description' => 'Easily download videos from Youtube, Dailymotion, Vimeo and other websites.', + 'domain' => $uri->getScheme().'://'.$uri->getAuthority(), + 'canonical' => $this->getCanonicalUrl($request), + 'supportedLocales' => $this->localeManager->getSupportedLocales(), + 'locale' => $this->localeManager->getLocale(), ] ); diff --git a/templates/inc/header.tpl b/templates/inc/header.tpl index 275c0d7..92066b5 100644 --- a/templates/inc/header.tpl +++ b/templates/inc/header.tpl @@ -4,9 +4,9 @@ {t}Share on Twitter{/t}
{t}Share on Facebook{/t}
- {if isset($locales)} + {if isset($supportedLocales)}