aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/admin/admin.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-11-29 13:00:40 +0000
committerplegall <plg@piwigo.org>2013-11-29 13:00:40 +0000
commitd700b89628dc9475af2e7ef9b42102ee2e05e5bd (patch)
treeef7855a8cb5a40a6378b28644a12c4f0ac4cdd69 /themes/smartpocket/admin/admin.inc.php
parentf1cb64106e2ccaeb474c6f0a36ffe2b4ca6475ca (diff)
smartpocket, configuration: simpler yes/no checkboxes (with fontello icons, same as AdminTools checkboxes)
git-svn-id: http://piwigo.org/svn/trunk@25752 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/smartpocket/admin/admin.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/smartpocket/admin/admin.inc.php b/themes/smartpocket/admin/admin.inc.php
index e9fd8326f..a5a9300c4 100644
--- a/themes/smartpocket/admin/admin.inc.php
+++ b/themes/smartpocket/admin/admin.inc.php
@@ -10,8 +10,8 @@ $config_send= array();
if(isset($_POST['submit_smartpocket']))
{
- $config_send['loop']=(isset($_POST['loop']) and $_POST['loop']=="false") ? false : true;
- $config_send['autohide']=(isset($_POST['autohide']) and $_POST['autohide']=="0") ? 0 : 5000;
+ $config_send['loop'] = isset($_POST['loop']);
+ $config_send['autohide'] = (isset($_POST['autohide']) ? 5000 : 0);
$conf['smartpocket'] = serialize($config_send);
conf_update_param('smartpocket', pwg_db_real_escape_string($conf['smartpocket']));