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)):