* fix the error of zentaoRoot when download notify package.

This commit is contained in:
wangchunsheng
2013-01-30 07:33:40 +00:00
parent 4fd49494a2
commit a9f9abff91
+6 -2
View File
@@ -102,8 +102,12 @@ class misc extends control
$files = $sourceZip->extract(PCLZIP_OPT_PATH, $notifyDir);
if($files == 0) die("Error : ".$sourceZip->errorInfo(true));
$currentUser = $this->app->user;
$loginInfo = json_encode(array('account' => $currentUser->account, 'password' => $currentUser->password, 'zentaoRoot' => 'http://' . $this->config->default->domain));
$loginInfo = new stdclass();
$loginInfo->account = $this->app->user->account;
$loginInfo->password = $this->app->user->password;
$loginInfo->zentaoRoot = common::getSysURL() . $this->config->webRoot;
$loginInfo = json_encode($loginInfo);
file_put_contents($loginFile, $loginInfo);
unlink($packageFile);