From 76be95e199fb0ebbbcdfff4843b59b805762e475 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 22 Mar 2017 19:58:22 +0100 Subject: [PATCH] Add API setting in the new theme during the installation Also use the same variable name across template files --- index.php | 2 +- tpl/default/configure.html | 4 ++-- tpl/default/install.html | 18 ++++++++++++++++++ tpl/vintage/configure.html | 4 ++-- 4 files changed, 23 insertions(+), 5 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) $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 @@

{'Configure'|t}

-
-
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 @@

{'Install Shaarli'|t}

+
+
+
+ +
+
+
+
+ +
+
+
+
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 - - +