Better error message for having problems while including files.
This commit is contained in:
@@ -282,6 +282,9 @@ function serendipity_parseTemplate($filename, $areas = null, $onlyFlags=null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$config = @include($filename);
|
$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 ) {
|
foreach ( $config as $n => $category ) {
|
||||||
/* If $areas is an array, we filter out those categories, not within the array */
|
/* If $areas is an array, we filter out those categories, not within the array */
|
||||||
|
|||||||
Reference in New Issue
Block a user