summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-05-17 11:15:53 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-05-17 11:15:53 -0400
commit4687f50e754f54349ea33348a45cacddaa10261a (patch)
tree808e99d0605fa3c1280d5ce6075d223778fc4d2f /core
parentf8336c1e2c17414649eceb0f2351524629c15899 (diff)
downloadnextcloud-server-4687f50e754f54349ea33348a45cacddaa10261a.tar.gz
nextcloud-server-4687f50e754f54349ea33348a45cacddaa10261a.zip
Add undefined verision variables
Diffstat (limited to 'core')
-rw-r--r--core/ajax/update.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index af469237a18..db00da02239 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -6,6 +6,8 @@ require_once '../../lib/base.php';
if (OC::checkUpgrade(false)) {
\OC_DB::enableCaching(false);
OC_Config::setValue('maintenance', true);
+ $installedVersion = OC_Config::getValue('version', '0.0.0');
+ $currentVersion = implode('.', OC_Util::getVersion());
OC_Log::write('core', 'starting upgrade from ' . $installedVersion . ' to ' . $currentVersion, OC_Log::WARN);
$updateEventSource = new OC_EventSource();
$watcher = new UpdateWatcher($updateEventSource);
@@ -111,4 +113,4 @@ class UpdateWatcher {
$this->eventSource->close();
}
-}
+} \ No newline at end of file