diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-23 18:32:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 18:32:26 +0100 |
commit | bae74cb292833a4482b3a42b78c020b7f97b7ffd (patch) | |
tree | b872dd34a32cace7dab4463c3e5f669cef85ae94 /index.php | |
parent | 4296080c8e0bc0576564bfb52bfe2cbc94fafed3 (diff) | |
parent | 76be95e199fb0ebbbcdfff4843b59b805762e475 (diff) | |
download | Shaarli-bae74cb292833a4482b3a42b78c020b7f97b7ffd.tar.gz Shaarli-bae74cb292833a4482b3a42b78c020b7f97b7ffd.tar.zst Shaarli-bae74cb292833a4482b3a42b78c020b7f97b7ffd.zip |
Merge pull request #831 from ArthurHoaro/theme/install-api-enable
Add API setting in the new theme during the installation
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1141,7 +1141,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) | |||
1141 | $conf->set('feed.rss_permalinks', !empty($_POST['enableRssPermalinks'])); | 1141 | $conf->set('feed.rss_permalinks', !empty($_POST['enableRssPermalinks'])); |
1142 | $conf->set('updates.check_updates', !empty($_POST['updateCheck'])); | 1142 | $conf->set('updates.check_updates', !empty($_POST['updateCheck'])); |
1143 | $conf->set('privacy.hide_public_links', !empty($_POST['hidePublicLinks'])); | 1143 | $conf->set('privacy.hide_public_links', !empty($_POST['hidePublicLinks'])); |
1144 | $conf->set('api.enabled', !empty($_POST['apiEnabled'])); | 1144 | $conf->set('api.enabled', !empty($_POST['enableApi'])); |
1145 | $conf->set('api.secret', escape($_POST['apiSecret'])); | 1145 | $conf->set('api.secret', escape($_POST['apiSecret'])); |
1146 | try { | 1146 | try { |
1147 | $conf->write(isLoggedIn()); | 1147 | $conf->write(isLoggedIn()); |