Remove every reference to alltubedownload.net (#422)

This commit is contained in:
Pierre Rudloff 2022-10-16 15:22:47 +02:00
parent 87e30f2e87
commit 1031ad152d
9 changed files with 4 additions and 56 deletions

View file

@ -20,23 +20,6 @@ use SmartyException;
*/
class ViewFactory
{
/**
* Generate the canonical URL of the current page.
*
* @param Request $request PSR-7 Request
*
* @return string URL
*/
private static function getCanonicalUrl(Request $request): string
{
/** @var Uri $uri */
$uri = $request->getUri();
return $uri->withBasePath('')
->withHost('alltubedownload.net')
->withScheme('https')
->withPort(443);
}
/**
* @param Uri $uri
@ -123,7 +106,6 @@ class ViewFactory
$view->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
$view->registerPlugin('block', 't', [$localeManager, 'smartyTranslate']);
$view->offsetSet('canonical', self::getCanonicalUrl($request));
$view->offsetSet('locale', $container->get('locale'));
$view->offsetSet('config', $container->get('config'));
$view->offsetSet('domain', $uri->withBasePath('')->getBaseUrl());