aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerhome.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/controllerhome.php')
-rw-r--r--app/class/controllerhome.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php
index 5a6d839..afbde7a 100644
--- a/app/class/controllerhome.php
+++ b/app/class/controllerhome.php
@@ -1,6 +1,6 @@
<?php
-class Controllerhome extends Controller
+class Controllerhome extends Controllerart
{
/** @var Modelhome */
protected $modelhome;
@@ -78,6 +78,18 @@ class Controllerhome extends Controller
}
}
+ public function renderall()
+ {
+ if($this->user->iseditor()) {
+ $pagelist = $this->modelhome->getlister();
+ foreach ($pagelist as $page) {
+ $this->renderart($page);
+ $this->artmanager->update($page);
+ }
+ }
+ $this->routedirect('home');
+ }
+