Don't use variables when we can use a Config object directly

This commit is contained in:
Pierre Rudloff 2017-05-04 20:26:42 +02:00
parent ef5304e598
commit a681804126
3 changed files with 5 additions and 8 deletions

View file

@ -101,8 +101,7 @@ class FrontController
$response,
'index.tpl',
[
'convert' => $this->config->convert,
'uglyUrls' => $this->config->uglyUrls,
'config' => $this->config,
'class' => 'index',
'description' => 'Easily download videos from Youtube, Dailymotion, Vimeo and other websites.',
'domain' => $uri->getScheme().'://'.$uri->getAuthority(),
@ -247,8 +246,6 @@ class FrontController
'protocol' => $protocol,
'config' => $this->config,
'canonical' => $this->getCanonicalUrl($request),
'uglyUrls' => $this->config->uglyUrls,
'remux' => $this->config->remux,
]
);