aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-22 19:58:22 +0100
committerArthurHoaro <arthur@hoa.ro>2017-03-22 19:58:22 +0100
commit76be95e199fb0ebbbcdfff4843b59b805762e475 (patch)
treee4521ad8c42f02b93d73cab778aaf193ee1f875c /index.php
parentc4c655d9bfe68a914898d76bb9c479eea1b04f72 (diff)
downloadShaarli-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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index cc7f3ca3..e5bfc2c2 100644
--- a/index.php
+++ b/index.php
@@ -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());