From 4690adc80cbef1dbb3e612ea8523798a5ba19aae Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 3 Nov 2010 14:35:10 +0100 Subject: [PATCH] Don't try to load dot files from the data/ directory. --- wicked/lib/Page/StandardPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wicked/lib/Page/StandardPage.php b/wicked/lib/Page/StandardPage.php index 14e72321f..622c932a7 100644 --- a/wicked/lib/Page/StandardPage.php +++ b/wicked/lib/Page/StandardPage.php @@ -57,6 +57,7 @@ class Wicked_Page_StandardPage extends Wicked_Page { // If we can't load $pagename, see if there's default data for it. $pagefile = WICKED_BASE . '/scripts/data/' . basename($pagename); if ($pagename == basename($pagename) && + substr($pagename, 0, 1) != '.' && file_exists($pagefile)) { $text = file_get_contents($pagefile); try { -- 2.11.0