summaryrefslogtreecommitdiff
path: root/it_auto_prepend.php
diff options
context:
space:
mode:
authorChristian Schneider2007-11-14 14:21:38 +0000
committerChristian Schneider2007-11-14 14:21:38 +0000
commit7a001ba5804676b0b67c637f433f3751ec614620 (patch)
tree4510c10fff9b6846153720194653948a25b45e39 /it_auto_prepend.php
parent2c0eee0347d509e1dbffbb849893a22a8cb60aa2 (diff)
downloaditools-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.php6
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";