File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 257257 // Set File Manager support
258258 if (empty ($ _SESSION ['error_msg ' ])) {
259259 if ((!empty ($ _POST ['v_filemanager ' ])) && ($ _SESSION ['FILE_MANAGER ' ] != $ _POST ['v_filemanager ' ])) {
260- if ($ _POST ['v_filemanager ' ] == 'yes ' ) {
261- $ _POST ['v_filemanager ' ] == 'true ' ;
260+ if ($ _POST ['v_filemanager ' ] == 'true ' ) {
262261 exec (HESTIA_CMD ."v-add-sys-filemanager " , $ output , $ return_var );
263262 check_return_code ($ return_var ,$ output );
264263 unset($ output );
265- if (empty ($ _SESSION ['error_msg ' ])) $ _SESSION ['FILE_MANAGER ' ] = 'yes ' ;
264+ if (empty ($ _SESSION ['error_msg ' ])) $ _SESSION ['FILE_MANAGER ' ] = 'true ' ;
266265 } else {
267- $ _POST ['v_filemanager ' ] == 'false ' ;
268266 exec (HESTIA_CMD ."v-delete-sys-filemanager " , $ output , $ return_var );
269267 check_return_code ($ return_var ,$ output );
270268 unset($ output );
271- if (empty ($ _SESSION ['error_msg ' ])) $ _SESSION ['FILE_MANAGER ' ] = 'no ' ;
269+ if (empty ($ _SESSION ['error_msg ' ])) $ _SESSION ['FILE_MANAGER ' ] = 'false ' ;
272270 }
273271 }
274272 }
Original file line number Diff line number Diff line change 842842 < table style ="display:<?php if (empty($v_adv)) echo 'none';?> ; " id ="hestia ">
843843 < tr >
844844 < td class ="vst-text input-label ">
845- < ?php print __('Fm ');?>
845+ < ?php print __('Filemanager ');?>
846846 </ td >
847847 </ tr >
848848 < tr >
849849 < td >
850850 < select class ="vst-list " name ="v_filemanager ">
851- < option value ='no '> < ?php print __('no'); ?> </ option >
852- < option value ='yes ' < ?php if($_SESSION['FILE_MANAGER'] == 'true') echo 'selected' ?> > < ?php print __('yes'); ?> </ option >
851+ < option value ='false '> < ?php print __('no'); ?> </ option >
852+ < option value ='true ' < ?php if($_SESSION['FILE_MANAGER'] == 'true') echo 'selected' ?> > < ?php print __('yes'); ?> </ option >
853853 </ select >
854854 < br > < br >
855855 </ td >
You can’t perform that action at this time.
0 commit comments