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)}