diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-22 19:58:22 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-03-22 19:58:22 +0100 |
commit | 76be95e199fb0ebbbcdfff4843b59b805762e475 (patch) | |
tree | e4521ad8c42f02b93d73cab778aaf193ee1f875c /index.php | |
parent | c4c655d9bfe68a914898d76bb9c479eea1b04f72 (diff) | |
download | Shaarli-76be95e199fb0ebbbcdfff4843b59b805762e475.tar.gz Shaarli-76be95e199fb0ebbbcdfff4843b59b805762e475.tar.zst Shaarli-76be95e199fb0ebbbcdfff4843b59b805762e475.zip |
Add API setting in the new theme during the installation
Also use the same variable name across template files
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1142,7 +1142,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) | |||
1142 | $conf->set('feed.rss_permalinks', !empty($_POST['enableRssPermalinks'])); | 1142 | $conf->set('feed.rss_permalinks', !empty($_POST['enableRssPermalinks'])); |
1143 | $conf->set('updates.check_updates', !empty($_POST['updateCheck'])); | 1143 | $conf->set('updates.check_updates', !empty($_POST['updateCheck'])); |
1144 | $conf->set('privacy.hide_public_links', !empty($_POST['hidePublicLinks'])); | 1144 | $conf->set('privacy.hide_public_links', !empty($_POST['hidePublicLinks'])); |
1145 | $conf->set('api.enabled', !empty($_POST['apiEnabled'])); | 1145 | $conf->set('api.enabled', !empty($_POST['enableApi'])); |
1146 | $conf->set('api.secret', escape($_POST['apiSecret'])); | 1146 | $conf->set('api.secret', escape($_POST['apiSecret'])); |
1147 | try { | 1147 | try { |
1148 | $conf->write(isLoggedIn()); | 1148 | $conf->write(isLoggedIn()); |