Skip to content

Commit

Permalink
remove useless variables
Browse files Browse the repository at this point in the history
  • Loading branch information
zzuutt committed May 30, 2017
1 parent ac74051 commit bd9a2c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions local/modules/TheliaSmarty/Template/Plugins/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,11 @@ public function generateUrlFunction($params, &$smarty)
->findOneByRedirected(null)
;

$domainUrl = $lang->getUrl();
$path = '';
if (null != $urlRewrite) {
$path = "/".$urlRewrite->getUrl();
}
$baseUrl = $request->getBaseUrl();
$url = rtrim($domainUrl, "/").$baseUrl.$path;
$url = rtrim($lang->getUrl(), "/").$request->getBaseUrl().$path;
}

}
Expand Down

1 comment on commit bd9a2c8

@roadster31
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Please sign in to comment.