aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-23 18:32:26 +0100
committerGitHub <noreply@github.com>2017-03-23 18:32:26 +0100
commitbae74cb292833a4482b3a42b78c020b7f97b7ffd (patch)
treeb872dd34a32cace7dab4463c3e5f669cef85ae94 /index.php
parent4296080c8e0bc0576564bfb52bfe2cbc94fafed3 (diff)
parent76be95e199fb0ebbbcdfff4843b59b805762e475 (diff)
downloadShaarli-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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index bf312d55..58bb3f44 100644
--- a/index.php
+++ b/index.php
@@ -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());