diff options
author | Urban Müller | 2015-09-17 14:52:47 +0200 |
---|---|---|
committer | Urban Müller | 2015-09-17 14:52:47 +0200 |
commit | 5c56d816dd3eb16e8ecdabd100643a5f396fd46a (patch) | |
tree | 0786a322a62f3ed05279287cd6c303d11e82f381 | |
parent | 0f9e9ea62699f0d82ab11eb4377eb889857ac3bc (diff) | |
download | itools-5c56d816dd3eb16e8ecdabd100643a5f396fd46a.tar.gz itools-5c56d816dd3eb16e8ecdabd100643a5f396fd46a.tar.bz2 itools-5c56d816dd3eb16e8ecdabd100643a5f396fd46a.zip |
do not suppress errors inside included files
-rw-r--r-- | itjs.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |