rpicms

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

commit cef4b0eef1aa8a5513343e35fcdc69123beed1e9
parent fd7f0eb00d4d93b5f4f893db209ff4392b32182f
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 21 Dec 2014 09:59:46 +0100

try to make update branches

Diffstat:
Mcore/update/update/update.php | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/core/update/update/update.php b/core/update/update/update.php @@ -177,10 +177,14 @@ class AutoUpdate { $update = ''; foreach ($versions as $key => $version) { - if ($key > $keyOld) { - $keyOld = $key; - $latest = $version['version']; - $update = $version['url']; + if ($version['branch'] = $branch){ + if ($key > $keyOld) { + $keyOld = $key; + $latest = $version['version']; + $update = $version['url']; + }else { + echo "missing branch"; + } } } @@ -188,6 +192,7 @@ class AutoUpdate { $this->latestVersion = $keyOld; $this->latestVersionName = $latest; $this->latestUpdate = $update; + $this->latestBranch = $branch; return $keyOld; }