From b347794ce528018d221523dc7c1e68ce3fc80cad Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 29 Mar 2025 01:47:03 +0100 Subject: [PATCH] Guides/Editor * fix language selector * fix changelog --- pages/guide.php | 19 ------------------- template/pages/guide-edit.tpl.php | 10 ++++++---- template/pages/text-page-generic.tpl.php | 2 +- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/pages/guide.php b/pages/guide.php index 08a4a44e..ed60239d 100644 --- a/pages/guide.php +++ b/pages/guide.php @@ -147,7 +147,6 @@ class GuidePage extends GenericPage protected function generateContent() : void { - /* match ($this->show) { self::SHOW_NEW => $this->displayNew(), @@ -156,24 +155,6 @@ class GuidePage extends GenericPage self::SHOW_CHANGELOG => $this->displayChangelog(), default => trigger_error('GuidePage::generateContent - what content!?') }; - */ - switch ($this->show) - { - case self::SHOW_NEW: - $this->displayNew(); - break; - case self::SHOW_EDITOR: - $this->displayEditor(); - break; - case self::SHOW_GUIDE: - $this->displayGuide(); - break; - case self::SHOW_CHANGELOG: - $this->displayChangelog(); - break; - default: - trigger_error('GuidePage::generateContent - what content!?'); - } } private function displayNew() : void diff --git a/template/pages/guide-edit.tpl.php b/template/pages/guide-edit.tpl.php index f9ae7c5e..a2db8a9e 100644 --- a/template/pages/guide-edit.tpl.php +++ b/template/pages/guide-edit.tpl.php @@ -53,9 +53,10 @@ $this->brick('pageTemplate'); @@ -68,8 +69,9 @@ endforeach; diff --git a/template/pages/text-page-generic.tpl.php b/template/pages/text-page-generic.tpl.php index f68388d4..a43edcc5 100644 --- a/template/pages/text-page-generic.tpl.php +++ b/template/pages/text-page-generic.tpl.php @@ -9,7 +9,7 @@ $this->brick('announcement'); $this->brick('pageTemplate'); -if (isset($this->notFound)): +if ($this->notFound): ?> doResync)):