diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-08 16:53:45 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-08 16:53:45 +0000 |
commit | a46e450ce9b791b839d0c05b90924240354b1c35 (patch) | |
tree | a3d8df496309eede86fd5525768fad733de6588f /etc/phpshellsessions | |
parent | 0c331f1e42cc19f2ba9a60499da474acd811cf44 (diff) | |
download | pfsense-a46e450ce9b791b839d0c05b90924240354b1c35.zip pfsense-a46e450ce9b791b839d0c05b90924240354b1c35.tar.gz |
Do not spread checking for value accross code. Do it in the function that is supposed to do it.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r-- | etc/phpshellsessions/gitsync | 6 |
1 files changed, 1 insertions, 5 deletions
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"); |