diff options
author | Simon Rettberg | 2013-11-07 17:10:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-11-07 17:10:43 +0100 |
commit | 8ae2b52e4db45f26c32a4ad9bc65494480936cbf (patch) | |
tree | 804bcfba15cdb7ff9c22b211adaf1d096a649559 /modules/sysconfig.inc.php | |
parent | Working on download of remote configs (diff) | |
download | slx-admin-8ae2b52e4db45f26c32a4ad9bc65494480936cbf.tar.gz slx-admin-8ae2b52e4db45f26c32a4ad9bc65494480936cbf.tar.xz slx-admin-8ae2b52e4db45f26c32a4ad9bc65494480936cbf.zip |
Make download work
Diffstat (limited to 'modules/sysconfig.inc.php')
-rw-r--r-- | modules/sysconfig.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/sysconfig.inc.php b/modules/sysconfig.inc.php index f8e6c6ad..e4751ec4 100644 --- a/modules/sysconfig.inc.php +++ b/modules/sysconfig.inc.php @@ -30,7 +30,7 @@ function list_configs() 'file' => $file ); } - Render::addTemplate('tgz-list', array('files' => $files)); + Render::addTemplate('page-tgz-list', array('files' => $files)); } function list_remote_configs() @@ -39,20 +39,20 @@ function list_remote_configs() Message::addError('no-permission'); return; } - $data = Util::download(CONFIG_REMOTE_TGZ . '/list', 4, $code); + $data = Util::download(CONFIG_REMOTE_TGZ . '/list.php', 4, $code); if ($code !== 200) { Message::addError('remote-timeout', CONFIG_REMOTE_TGZ); return; } $list = json_decode($data, true); if (!is_array($list)) { - Message::addError('remote-parse-failed'); + Message::addError('remote-parse-failed', $data); return; } $id = 0; foreach ($list as &$item) { - $item['id'] = ++$id; + $item['id'] = 'download' . (++$id); } - Render::addTemplate('remote-tgz-list', array('files' => $list)); + Render::addTemplate('page-remote-tgz-list', array('files' => $list)); } |