git-svn-id: http://xe-core.googlecode.com/svn/trunk@749 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-29 00:55:27 +00:00
parent d48bd45e60
commit 3ffcefd6fb
6 changed files with 20 additions and 7 deletions

View file

@ -37,7 +37,7 @@
$addon = trim($addon_list[$i]);
if(!$addon) continue;
$buff .= sprintf(' include("./addons/%s/%s.addon.php"); ', $addon, $addon);
$buff .= sprintf(' if(file_exists("./addons/%s%s.addon.php")) include("./addons/%s/%s.addon.php"); ', $addon, $addon, $addon, $addon);
}
$buff = sprintf('<?if(!__ZBXE__)exit(); %s ?>', $buff);