rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 73f766daf20b9255c9db85775b42c97cce78754f
parent c09d5a4e2593831bdca26ab76c285fc0f5a15806
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 21 Dec 2014 15:56:55 +0100

fix variables

Diffstat:
Mcore/update/update/update.php | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/update/update/update.php b/core/update/update/update.php @@ -165,7 +165,6 @@ class AutoUpdate { * @return string The latest version */ public function checkUpdate() { - global $branch; $this->log('Checking for a new update. . .'); $updateFile = $this->updateUrl.'/update.ini'; @@ -182,7 +181,7 @@ class AutoUpdate { $latest = 0; $update = ''; foreach ($versions as $key => $version) { - if ($branch = $version['branch']){ + if ($this->branch = $version['branch']){ if ($key > $keyOld) { $keyOld = $key; $latest = $version['version']; @@ -215,7 +214,7 @@ class AutoUpdate { */ public function downloadUpdate($updateUrl, $updateFile) { $this->log('Downloading update...'); - $updateUrl = $updateUrl . $branch; + $updateUrl = $updateUrl . $this->branch; $update = @file_get_contents($updateUrl); if ($update === false) {