]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Merge pull request #831 from ArthurHoaro/theme/install-api-enable
[github/shaarli/Shaarli.git] / index.php
index bf312d5560372e32a16746634bdcc288f72efa04..58bb3f442c20d3be0777927dc98f9cbbac151681 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1141,7 +1141,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());