issue 160 fixed a bug for addon

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9148 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-15 05:04:33 +00:00
parent ead9eceded
commit 865e88c47b
4 changed files with 11 additions and 11 deletions

View file

@ -23,8 +23,7 @@
$addon_path = _XE_PATH_.'files/cache/addons/';
if($site_srl) $addon_file = $addon_path.$site_srl.$type.'.acivated_addons.cache.php';
else $addon_file = $addon_path.$type.'acivated_addons.cache.php';
$addon_file = $addon_path.$site_srl.$type.'.acivated_addons.cache.php';
if($this->addon_file_called) return $addon_file;
$this->addon_file_called = true;
@ -147,7 +146,7 @@
if(!is_dir($addon_path)) FileHandler::makeDir($addon_path);
if($gtype == 'site') $addon_file = $addon_path.$site_srl.$type.'.acivated_addons.cache.php';
else $addon_file = $addon_path.$type.'acivated_addons.cache.php';
else $addon_file = $addon_path.$type.'.acivated_addons.cache.php';
FileHandler::writeFile($addon_file, $buff);
}