summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-21 12:16:51 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-21 12:16:51 +0100
commita52bc333a265444d3a038f08bb70231127b2c9bf (patch)
treed63f8656f3a93072be607d6489501d61fdde47ba /lib
parent3f95f9325fafc04026c697b1a4bfb471dc5e19d8 (diff)
parent239069c8386a1a4ec29594d392e8359b8914af47 (diff)
downloadnextcloud-server-a52bc333a265444d3a038f08bb70231127b2c9bf.tar.gz
nextcloud-server-a52bc333a265444d3a038f08bb70231127b2c9bf.zip
Merge pull request #7611 from owncloud/fix-updater
Use $installedVersion instead of $currentVersion
Diffstat (limited to 'lib')
-rw-r--r--lib/private/updater.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php
index 18864c17ec9..9f57aa0b6a0 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -110,7 +110,7 @@ class Updater extends BasicEmitter {
/*
* START CONFIG CHANGES FOR OLDER VERSIONS
*/
- if (!\OC::$CLI && version_compare($currentVersion, '6.90.1', '<')) {
+ if (!\OC::$CLI && version_compare($installedVersion, '6.90.1', '<')) {
// Add the overwriteHost config if it is not existant
// This is added to prevent host header poisoning
\OC_Config::setValue('trusted_domains', \OC_Config::getValue('trusted_domains', array(\OC_Request::serverHost())));