rpicms

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

commit 48b3dd788392cd39f955a12c2297851e73b12477
parent 5572760f08e1c8613c592dc3318ced01f9c4d66f
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 20 Dec 2014 22:15:16 +0100

fix $root

Diffstat:
Mthemes/jumbotron/admin.php | 2+-
Mthemes/jumbotron/update.php | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php @@ -179,7 +179,7 @@ foreach($langs as $prio => $lang) { <div class="hide_" id="update"> <h2>Updates</h2> - <from action="update.php?update=1" method="get"> + <from action="update.php?update=update" method="get"> <button type="submit" value="update">Update</button> </from> diff --git a/themes/jumbotron/update.php b/themes/jumbotron/update.php @@ -24,6 +24,7 @@ if ($root_3[1] == 'core') { $root = $root_1 . '/' . $root_3[1]; } function update(){ +global $root; require($root . '/core/update/update/update.php'); $update = new AutoUpdate(true);