diff --git a/system/includes/functions.php b/system/includes/functions.php
index 0af8f2b..23f9aad 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -1692,7 +1692,7 @@ EOF;
echo '
Clear cache';
if( $updater->updateAble())
{
- echo 'UpdateMe[' . $updater->getName() . ']';
+ echo 'Update to ' . $updater->getName() . '';
}
echo 'Logout';
diff --git a/system/includes/updater.php b/system/includes/updater.php
index 8e4bcbb..fe53f9f 100644
--- a/system/includes/updater.php
+++ b/system/includes/updater.php
@@ -119,7 +119,8 @@ class Updater
}
protected function unZip()
{
- $path = $this->zipFile;
+ $path = dirname($_SERVER['SCRIPT_FILENAME']) . "/" . $this->zipFile;
+
$zip = new ZipArchive;
if ($zip->open($path) === true) {
$cutLength = strlen($zip->getNameIndex(0));
@@ -134,7 +135,7 @@ class Updater
}
}
else{
- copy("zip://".$path."#".$filename, substr($filename,$cutLength));
+ copy("zip://".$path."#".$fileName, substr($fileName,$cutLength));
}
}
$zip->close();