1
0

Better error message for having problems while including files.

This commit is contained in:
Grischa Brockhaus
2009-06-02 12:36:39 +00:00
parent 3174dcf7d9
commit 31c42d9704

View File

@ -282,6 +282,9 @@ function serendipity_parseTemplate($filename, $areas = null, $onlyFlags=null) {
}
$config = @include($filename);
if (! is_array($config)) {
echo "<b>Error reading: " . $filename . "</b><br/>Perhaps the Webserver can't access the file?<br/>";
}
foreach ( $config as $n => $category ) {
/* If $areas is an array, we filter out those categories, not within the array */