From: Michael Gapczynski Date: Fri, 17 May 2013 15:15:53 +0000 (-0400) Subject: Add undefined verision variables X-Git-Tag: v6.0.0alpha2~634^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4687f50e754f54349ea33348a45cacddaa10261a;p=nextcloud-server.git Add undefined verision variables --- 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