From 3d268072fc2cba0e337da684cdf86eb6db3c4281 Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Tue, 15 Jul 2014 17:43:37 +0200 Subject: [PATCH] Improved downward compatibility --- cache/installedVersion.json | 1 + system/includes/updater.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cache/installedVersion.json b/cache/installedVersion.json index 2d86412..54985e8 100644 --- a/cache/installedVersion.json +++ b/cache/installedVersion.json @@ -1,3 +1,4 @@ { + "id": 397789, "tag_name": "v2.1" } \ No newline at end of file diff --git a/system/includes/updater.php b/system/includes/updater.php index d0db34f..8e4bcbb 100644 --- a/system/includes/updater.php +++ b/system/includes/updater.php @@ -130,11 +130,11 @@ class Updater $dirName = substr($fileName,$cutLength); if(! file_exists($dirName)) { - //mkdir($dirName); + mkdir($dirName); } } else{ - //copy("zip://".$path."#".$filename, substr($filename,$cutLength)); + copy("zip://".$path."#".$filename, substr($filename,$cutLength)); } } $zip->close();