]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add undefined verision variables
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 17 May 2013 15:15:53 +0000 (11:15 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 17 May 2013 15:15:53 +0000 (11:15 -0400)
core/ajax/update.php

index af469237a185a209fe0798a3f747d7309f9817ad..db00da022397445b38b87903ec0ec8048a3f88d7 100644 (file)
@@ -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