summaryrefslogtreecommitdiff
path: root/it_auto_prepend.php
diff options
context:
space:
mode:
Diffstat (limited to 'it_auto_prepend.php')
-rw-r--r--it_auto_prepend.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/it_auto_prepend.php b/it_auto_prepend.php
index 556f167..35014ea 100644
--- a/it_auto_prepend.php
+++ b/it_auto_prepend.php
@@ -125,11 +125,14 @@ function it_convert($source)
{
$sourcerelpath = it::replace(array('^(/|\w:)' => ""), $source); # Remove leading / or C:
- if (@is_dir($source) && !@is_link($source))
+ if (@is_dir($source))
{
- ini_set('include_path', $GLOBALS['IT_SYNTAXCONVERTER_DIR'] . "/it_syntaxconverter/$sourcerelpath" . PATH_SEPARATOR . ini_get('include_path'));
- foreach (glob("$source/*") as $file)
- it_convert($file);
+ if (!@is_link($source) && !file_exists("$source/.no_it_syntaxconvert"))
+ {
+ ini_set('include_path', $GLOBALS['IT_SYNTAXCONVERTER_DIR'] . "/it_syntaxconverter/$sourcerelpath" . PATH_SEPARATOR . ini_get('include_path'));
+ foreach (glob("$source/*") as $file)
+ it_convert($file);
+ }
}
else if (@is_readable($source))
{