diff options
author | Christian Schneider | 2007-11-14 14:21:38 +0000 |
---|---|---|
committer | Christian Schneider | 2007-11-14 14:21:38 +0000 |
commit | 7a001ba5804676b0b67c637f433f3751ec614620 (patch) | |
tree | 4510c10fff9b6846153720194653948a25b45e39 /it_auto_prepend.php | |
parent | 2c0eee0347d509e1dbffbb849893a22a8cb60aa2 (diff) | |
download | itools-7a001ba5804676b0b67c637f433f3751ec614620.tar.gz itools-7a001ba5804676b0b67c637f433f3751ec614620.tar.bz2 itools-7a001ba5804676b0b67c637f433f3751ec614620.zip |
Suppress warnings on shared hosters with open_basedir set
Diffstat (limited to 'it_auto_prepend.php')
-rw-r--r-- | it_auto_prepend.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/it_auto_prepend.php b/it_auto_prepend.php index 472a016..87ec0a0 100644 --- a/it_auto_prepend.php +++ b/it_auto_prepend.php @@ -85,7 +85,7 @@ function it_initialize() if ($needsconvert) it_convert($include); - if (file_exists($autoprepend = "$include/auto_prepend.php")) + if (@file_exists($autoprepend = "$include/auto_prepend.php")) { if ($needsconvert && ($include != $it_path)) $autoprepend = it_convert($autoprepend); @@ -118,12 +118,12 @@ function it_initialize() function it_convert($source) { - if (is_dir($source) && !is_link($source)) + if (@is_dir($source) && !@is_link($source)) { foreach (glob("$source/*") as $file) it_convert($file); } - else if (is_readable($source)) + else if (@is_readable($source)) { $converted = $GLOBALS['IT_SYNTAXCONVERTER_DIR'] . "/it_syntaxconverter/$source"; |