diff options
Diffstat (limited to 'app/class/Controllerpage.php')
-rw-r--r-- | app/class/Controllerpage.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/app/class/Controllerpage.php b/app/class/Controllerpage.php index b5679a9..c7e1f98 100644 --- a/app/class/Controllerpage.php +++ b/app/class/Controllerpage.php @@ -13,8 +13,6 @@ class Controllerpage extends Controller protected $fontmanager; protected $mediamanager; - public const COMBINE = false; - public function __construct($router) { parent::__construct($router); @@ -368,9 +366,6 @@ class Controllerpage extends Controller $oldpage = clone $this->page; $this->page->hydrate($_POST); - if (self::COMBINE && $_POST['thisdatemodif'] === $oldpage->datemodif('string')) { - } - $this->page->updateedited(); $this->page->addauthor($this->user->id()); $this->page->removeeditby($this->user->id()); @@ -389,41 +384,6 @@ class Controllerpage extends Controller $this->routedirect('pageedit', ['page' => $this->page->id()]); } - /** - * This function set the actual editor of the page - * - * @param string $pageid as the page id - */ - public function editby(string $pageid) - { - $this->page = new Page(['id' => $pageid]); - if ($this->importpage($pageid)) { - $this->page->addeditby($this->user->id()); - $this->pagemanager->update($this->page); - echo json_encode(['success' => true]); - } else { - $this->error(400); - } - } - - /** - * This function remove the actual editor of the page - * - * @param string $pageid as the page id - */ - public function removeeditby(string $pageid) - { - $this->page = new Page(['id' => $pageid]); - if ($this->importpage($pageid)) { - $this->page->removeeditby($this->user->id()); - $this->pagemanager->update($this->page); - echo json_encode(['success' => true]); - } else { - $this->error(400); - } - } - - public function movepanels() { $_SESSION['workspace']['showrightpanel'] = isset($_POST['workspace']['showrightpanel']); |