Replace WWW_TOP with url() helper

This commit is contained in:
DariusIII
2019-12-08 19:21:23 +01:00
parent 325b1b71d2
commit 5886fe162c
10 changed files with 17 additions and 16 deletions
+4 -4
View File
@@ -23,9 +23,9 @@ class MyShowsController extends BasePageController
$videoId = $request->input('id') ?? '';
if ($request->has('from')) {
$this->smarty->assign('from', WWW_TOP.$request->input('from'));
$this->smarty->assign('from', url($request->input('from')));
} else {
$this->smarty->assign('from', WWW_TOP.'/myshows');
$this->smarty->assign('from', url('/myshows'));
}
switch ($action) {
@@ -37,7 +37,7 @@ class MyShowsController extends BasePageController
UserSerie::delShow($this->userdata->id, $videoId);
if ($request->has('from')) {
header('Location:'.WWW_TOP.$request->input('from'));
header('Location:'.url($request->input('from')));
} else {
return redirect('myshows');
}
@@ -191,7 +191,7 @@ class MyShowsController extends BasePageController
$this->smarty->assign('covgroup', '');
foreach ($ordering as $ordertype) {
$this->smarty->assign('orderby'.$ordertype, WWW_TOP.'/myshows/browse?ob='.$ordertype.'&offset=0');
$this->smarty->assign('orderby'.$ordertype, url('/myshows/browse?ob='.$ordertype.'&offset=0'));
}
$this->smarty->assign('lastvisit', $this->userdata->lastlogin);