summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2015-09-17 14:52:47 +0200
committerUrban Müller2015-09-17 14:52:47 +0200
commit5c56d816dd3eb16e8ecdabd100643a5f396fd46a (patch)
tree0786a322a62f3ed05279287cd6c303d11e82f381 /itjs.class
parent0f9e9ea62699f0d82ab11eb4377eb889857ac3bc (diff)
downloaditools-5c56d816dd3eb16e8ecdabd100643a5f396fd46a.tar.gz
itools-5c56d816dd3eb16e8ecdabd100643a5f396fd46a.tar.bz2
itools-5c56d816dd3eb16e8ecdabd100643a5f396fd46a.zip
do not suppress errors inside included files
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 6ef1c8f..b8520f5 100644
--- a/itjs.class
+++ b/itjs.class
@@ -160,7 +160,8 @@ static function filecontents($filenames, $execphp = true)
list($filename, $paramstr) = explode("?", $filename);
if ($paramstr && $execphp)
parse_str($paramstr, $_GET);
- $result .= it::replace(array('^1$' => ""), $execphp ? @include($filename) : @file_get_contents($filename), array('utf8' => false));
+ if (file_exists($filename))
+ $result .= it::replace(array('^1$' => ""), $execphp ? include($filename) : file_get_contents($filename), array('utf8' => false));
$_GET = $origget;
}
$result .= ob_get_clean();