From 0968351067f99e8afc882d4237902642e608e6f5 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 18 Oct 2019 15:50:34 +0200 Subject: Big naming Clean-up Art -> Page --- app/class/controllerconnect.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/class/controllerconnect.php') diff --git a/app/class/controllerconnect.php b/app/class/controllerconnect.php index bf1b72d..1bd0a5a 100644 --- a/app/class/controllerconnect.php +++ b/app/class/controllerconnect.php @@ -19,13 +19,13 @@ class Controllerconnect extends Controller public function connect() { - if(isset($_SESSION['artupdate'])) { - $artupdate['route'] = 'artedit'; - $artupdate['id'] = $_SESSION['artupdate']['id']; + if(isset($_SESSION['pageupdate'])) { + $pageupdate['route'] = 'pageedit'; + $pageupdate['id'] = $_SESSION['pageupdate']['id']; } else { - $artupdate = ['route' => 'home']; + $pageupdate = ['route' => 'home']; } - $this->showtemplate('connect', $artupdate); + $this->showtemplate('connect', $pageupdate); } @@ -47,7 +47,7 @@ class Controllerconnect extends Controller } } if ($id !== null) { - $this->routedirect($route, ['art' => $id]); + $this->routedirect($route, ['page' => $id]); } else { $this->routedirect($route); } @@ -58,7 +58,7 @@ class Controllerconnect extends Controller $this->user = $this->usermanager->logout(); $this->usermanager->writesession($this->user); if ($id !== null && $route !== 'home') { - $this->routedirect($route, ['art' => $id]); + $this->routedirect($route, ['page' => $id]); } else { $this->routedirect($route); } -- cgit v1.2.3