From: ArthurHoaro Date: Wed, 22 Mar 2017 18:58:22 +0000 (+0100) Subject: Add API setting in the new theme during the installation X-Git-Tag: v0.9.0~24^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=76be95e199fb0ebbbcdfff4843b59b805762e475 Add API setting in the new theme during the installation Also use the same variable name across template files --- 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) $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()); diff --git a/tpl/default/configure.html b/tpl/default/configure.html index d6536d47..12261487 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -186,7 +186,7 @@
-
-
diff --git a/tpl/default/install.html b/tpl/default/install.html index 33f8a453..663397ac 100644 --- a/tpl/default/install.html +++ b/tpl/default/install.html @@ -7,6 +7,8 @@ {$ratioLabel='1-4'} {$ratioInput='3-4'} +{$ratioLabelMobile='7-8'} +{$ratioInputMobile='1-8'}
@@ -98,6 +100,22 @@
+
+
+
+ +
+
+
+
+ +
+
+
+
diff --git a/tpl/vintage/configure.html b/tpl/vintage/configure.html index 5820e6e4..704389c5 100644 --- a/tpl/vintage/configure.html +++ b/tpl/vintage/configure.html @@ -97,9 +97,9 @@ Enable REST API - - +