projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2289d3f
)
Don't try to load dot files from the data/ directory.
author
Jan Schneider
<jan@horde.org>
Wed, 3 Nov 2010 13:35:10 +0000
(14:35 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 3 Nov 2010 13:35:10 +0000
(14:35 +0100)
wicked/lib/Page/StandardPage.php
patch
|
blob
|
history
diff --git
a/wicked/lib/Page/StandardPage.php
b/wicked/lib/Page/StandardPage.php
index
14e7232
..
622c932
100644
(file)
--- 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 {