summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-09 13:46:59 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-09 13:46:59 +0200
commitbd21e5925cf5e2f388b0f2b0f92d15e887c18423 (patch)
treee69079f81916f83803f3c2e6be47d0b554fe7a71
parent38143d670b25cb172042a19a3aa822c62d2d3bab (diff)
downloadnextcloud-server-bd21e5925cf5e2f388b0f2b0f92d15e887c18423.tar.gz
nextcloud-server-bd21e5925cf5e2f388b0f2b0f92d15e887c18423.zip
Clean code
-rw-r--r--lib/private/updater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php
index 9e2e9c962f5..69120427da8 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -32,7 +32,6 @@
namespace OC;
-use OC\Core\Command\Log\Manage;
use OC\Hooks\BasicEmitter;
use OC_App;
use OC_Installer;
@@ -207,7 +206,7 @@ class Updater extends BasicEmitter {
try {
$this->doUpgrade($currentVersion, $installedVersion);
} catch (\Exception $exception) {
- \OCP\Util::logException('update', $exception);
+ $this->log->logException($exception, ['app' => 'core']);
$this->emit('\OC\Updater', 'failure', array(get_class($exception) . ': ' .$exception->getMessage()));
$success = false;
}
@@ -235,6 +234,7 @@ class Updater extends BasicEmitter {
private function getAllowedPreviousVersion() {
// this should really be a JSON file
require \OC::$SERVERROOT . '/version.php';
+ /** @var array $OC_VersionCanBeUpgradedFrom */
return implode('.', $OC_VersionCanBeUpgradedFrom);
}