aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerconnect.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-10-18 15:50:34 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-10-18 15:50:34 +0200
commit0968351067f99e8afc882d4237902642e608e6f5 (patch)
tree202d554dcc6135a88c11bee78660c53a47df2931 /app/class/controllerconnect.php
parent917a3971302791d9df67c047c4e663c9fb04f0c4 (diff)
downloadwcms-0968351067f99e8afc882d4237902642e608e6f5.tar.gz
wcms-0968351067f99e8afc882d4237902642e608e6f5.zip
Big naming Clean-up Art -> Page
Diffstat (limited to 'app/class/controllerconnect.php')
-rw-r--r--app/class/controllerconnect.php14
1 files changed, 7 insertions, 7 deletions
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);
}