From c29b96421520d3a2f585d5bb469f24dbf1970cf1 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sat, 28 Jun 2014 18:49:11 +0200 Subject: [PATCH] Removed obsolete function from Page-class --- content.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/content.php b/content.php index 37d8534..91d6742 100644 --- a/content.php +++ b/content.php @@ -10,14 +10,9 @@ class Page $this->filename = $filename; } - public function createPage() - { - include ("{$contentFolder}{$this->filename}.html"); - } - public function createMenuItem() { - // Match just the name, without the .html, .php etc parc + // Match just the name, without the .html, .php etc part preg_match_all("/[a-z_\-0-9]*/i", $this->filename, $out); $bareFilename = $out[0][0]; @@ -26,6 +21,7 @@ class Page $this->name . "\n"); } + // For future-uses... public function getName() { return $this->name;