]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Add API setting in the new theme during the installation
[github/shaarli/Shaarli.git] / index.php
index cc7f3ca3497feaf96288b61f718997eb0c3a09cf..e5bfc2c275c7b21f6296155855f7020acc34334c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1142,7 +1142,7 @@ function renderPage($conf, $pluginManager, $LINKSDB)
             $conf->set('feed.rss_permalinks', !empty($_POST['enableRssPermalinks']));
             $conf->set('updates.check_updates', !empty($_POST['updateCheck']));
             $conf->set('privacy.hide_public_links', !empty($_POST['hidePublicLinks']));
-            $conf->set('api.enabled', !empty($_POST['apiEnabled']));
+            $conf->set('api.enabled', !empty($_POST['enableApi']));
             $conf->set('api.secret', escape($_POST['apiSecret']));
             try {
                 $conf->write(isLoggedIn());