* fix bugs.

This commit is contained in:
wangyidong
2015-01-13 08:40:56 +08:00
parent 1111206f8d
commit 6eb622d45a
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ class extension extends control
}
/* Download the package file. */
$this->extension->downloadPackage($extension, helper::safe64Decode($downLink));
if(!file_exists($packageFile) or ($md5 != '' and md5_file($packageFile) != $md5)) $this->extension->downloadPackage($extension, helper::safe64Decode($downLink));
if(!file_exists($packageFile))
{
$this->view->error = sprintf($this->lang->extension->errorDownloadFailed, $packageFile);