From a46e450ce9b791b839d0c05b90924240354b1c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 8 Mar 2010 16:53:45 +0000 Subject: Do not spread checking for value accross code. Do it in the function that is supposed to do it. --- etc/phpshellsessions/gitsync | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'etc/phpshellsessions/gitsync') diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index bd662ca..6491851 100644 --- a/etc/phpshellsessions/gitsync +++ b/etc/phpshellsessions/gitsync @@ -227,11 +227,7 @@ function post_cvssync_commands() { /* lock down console if necessary */ echo "===> Locking down the console if needed...\n"; - if(isset($config['system']['disableconsolemenu'])) { - auto_login(false); - } else { - auto_login(true); - } + auto_login(); echo "===> Signaling PHP and Lighty restart..."; $fd = fopen("/tmp/restart_lighty", "w"); -- cgit v1.1