[Pkg-owncloud-commits] [owncloud] 17/63: [stable8] Use new updater URL

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:50:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8.0
in repository owncloud.

commit 8bd90a12f1b09760e1fa712fb5f42839a8c46f18
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Sat Nov 28 11:55:57 2015 +0100

    [stable8] Use new updater URL
---
 lib/private/updater.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/private/updater.php b/lib/private/updater.php
index 2980e94..6ceff8d 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -98,7 +98,7 @@ class Updater extends BasicEmitter {
 	/**
 	 * Check if a new version is available
 	 *
-	 * @param string $updaterUrl the url to check, i.e. 'http://apps.owncloud.com/updater.php'
+	 * @param string $updaterUrl the url to check, i.e. 'https://updates.owncloud.com/server/'
 	 * @return array|bool
 	 */
 	public function check($updaterUrl = null) {
@@ -109,7 +109,7 @@ class Updater extends BasicEmitter {
 		}
 
 		if (is_null($updaterUrl)) {
-			$updaterUrl = 'https://apps.owncloud.com/updater.php';
+			$updaterUrl = 'https://updates.owncloud.com/server/';
 		}
 
 		$this->config->setAppValue('core', 'lastupdatedat', time());
@@ -138,10 +138,10 @@ class Updater extends BasicEmitter {
 			$data = @simplexml_load_string($xml);
 			libxml_disable_entity_loader($loadEntities);
 			if ($data !== false) {
-				$tmp['version'] = $data->version;
-				$tmp['versionstring'] = $data->versionstring;
-				$tmp['url'] = $data->url;
-				$tmp['web'] = $data->web;
+				$tmp['version'] = (string)$data->version;
+				$tmp['versionstring'] = (string)$data->versionstring;
+				$tmp['url'] = (string)$data->url;
+				$tmp['web'] = (string)$data->web;
 			}
 		} else {
 			$data = array();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list