diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-10 01:36:33 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-10 01:36:33 +0200 |
commit | 7055d2aa2be1a9eadc3f0abb31adc5b1e91de119 (patch) | |
tree | e6f2f9d609980d8f8ff0e2a139e0bac64a88630b /settings | |
parent | 595591a460c9956e0908c89dd90bf79e5c86aee2 (diff) | |
download | nextcloud-server-7055d2aa2be1a9eadc3f0abb31adc5b1e91de119.tar.gz nextcloud-server-7055d2aa2be1a9eadc3f0abb31adc5b1e91de119.zip |
Backgroundjobs: improve admin form
Diffstat (limited to 'settings')
-rwxr-xr-x | settings/admin.php | 1 | ||||
-rwxr-xr-x | settings/templates/admin.php | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/settings/admin.php b/settings/admin.php index bf8e03c13c8..6909e02d14f 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -29,6 +29,7 @@ $tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 )); $tmpl->assign('entries',$entries); $tmpl->assign('entriesremain', $entriesremain); $tmpl->assign('htaccessworking',$htaccessworking); +$tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax')); $tmpl->assign('forms',array()); foreach($forms as $form){ $tmpl->append('forms',$form); diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 318bfbbe196..af724f134bf 100755 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -27,13 +27,13 @@ if(!$_['htaccessworking']) { <fieldset class="personalblock" id="backgroundjobs"> <legend><strong><?php echo $l->t('Cron');?></strong></legend> - <input type="radio" name="mode" value="none" id="backgroundjobs_none"> + <input type="radio" name="mode" value="none" id="backgroundjobs_none" <?php if( $_['backgroundjob_mode'] == "none" ){ echo 'checked="checked"' } ?>> <label for="backgroundjobs_none">None</label><br /> - <input type="radio" name="mode" value="ajax" id="backgroundjobs_ajax"> + <input type="radio" name="mode" value="ajax" id="backgroundjobs_ajax" <?php if( $_['backgroundjob_mode'] == "ajax" ){ echo 'checked="checked"' } ?>> <label for="backgroundjobs_ajax">AJAX</label><br /> - <input type="radio" name="mode" value="webcron" id="backgroundjobs_webcron"> + <input type="radio" name="mode" value="webcron" id="backgroundjobs_webcron" <?php if( $_['backgroundjob_mode'] == "webcron" ){ echo 'checked="checked"' } ?>> <label for="backgroundjobs_webcron">Webcron</label><br /> - <input type="radio" name="mode" value="cron" id="backgroundjobs_cron"> + <input type="radio" name="mode" value="cron" id="backgroundjobs_cron" <?php if( $_['backgroundjob_mode'] == "cron" ){ echo 'checked="checked"' } ?>> <label for="backgroundjobs_cron">Cron</label><br /> </fieldset> |