@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | <h2 class="inlineblock"><?php p($l->t('Background jobs'));?></h2> |
| 31 | 31 | <p class="cronlog inlineblock"> |
| 32 | 32 | <?php if ($_['lastcron'] !== false): |
| 33 | - $relative_time = relative_modified_date($_['lastcron']); |
|
| 33 | + $relative_time = relative_modified_date($_['lastcron']); |
|
| 34 | 34 | |
| 35 | - $formatter = \OC::$server->getDateTimeFormatter(); |
|
| 36 | - $absolute_time = $formatter->formatDateTime($_['lastcron'], 'long', 'long'); |
|
| 37 | - if (time() - $_['lastcron'] <= 3600): ?> |
|
| 35 | + $formatter = \OC::$server->getDateTimeFormatter(); |
|
| 36 | + $absolute_time = $formatter->formatDateTime($_['lastcron'], 'long', 'long'); |
|
| 37 | + if (time() - $_['lastcron'] <= 3600): ?> |
|
| 38 | 38 | <span class="status success"></span> |
| 39 | 39 | <span class="crondate" title="<?php p($absolute_time);?>"> |
| 40 | 40 | <?php p($l->t("Last job ran %s.", [$relative_time]));?> |
@@ -45,10 +45,10 @@ discard block |
||
| 45 | 45 | <?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?> |
| 46 | 46 | </span> |
| 47 | 47 | <?php endif; |
| 48 | - else: ?> |
|
| 48 | + else: ?> |
|
| 49 | 49 | <span class="status error"></span> |
| 50 | 50 | <?php p($l->t("Background job didn’t run yet!")); |
| 51 | - endif; ?> |
|
| 51 | + endif; ?> |
|
| 52 | 52 | </p> |
| 53 | 53 | <a target="_blank" rel="noreferrer noopener" class="icon-info" |
| 54 | 54 | title="<?php p($l->t('Open documentation'));?>" |
@@ -61,38 +61,38 @@ discard block |
||
| 61 | 61 | <p> |
| 62 | 62 | <input type="radio" name="mode" value="ajax" class="radio" |
| 63 | 63 | id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") { |
| 64 | - print_unescaped('checked="checked"'); |
|
| 65 | - } ?>> |
|
| 64 | + print_unescaped('checked="checked"'); |
|
| 65 | + } ?>> |
|
| 66 | 66 | <label for="backgroundjobs_ajax">AJAX</label><br/> |
| 67 | 67 | <em><?php p($l->t("Execute one task with each page loaded")); ?></em> |
| 68 | 68 | </p> |
| 69 | 69 | <p> |
| 70 | 70 | <input type="radio" name="mode" value="webcron" class="radio" |
| 71 | 71 | id="backgroundjobs_webcron" <?php if ($_['backgroundjobs_mode'] === "webcron") { |
| 72 | - print_unescaped('checked="checked"'); |
|
| 73 | - } ?>> |
|
| 72 | + print_unescaped('checked="checked"'); |
|
| 73 | + } ?>> |
|
| 74 | 74 | <label for="backgroundjobs_webcron">Webcron</label><br/> |
| 75 | 75 | <em><?php p($l->t("cron.php is registered at a webcron service to call cron.php every 15 minutes over HTTP.")); ?></em> |
| 76 | 76 | </p> |
| 77 | 77 | <p> |
| 78 | 78 | <input type="radio" name="mode" value="cron" class="radio" |
| 79 | 79 | id="backgroundjobs_cron" <?php if ($_['backgroundjobs_mode'] === "cron") { |
| 80 | - print_unescaped('checked="checked"'); |
|
| 81 | - } |
|
| 82 | - if (!$_['cli_based_cron_possible']) { |
|
| 83 | - print_unescaped('disabled'); |
|
| 84 | - }?>> |
|
| 80 | + print_unescaped('checked="checked"'); |
|
| 81 | + } |
|
| 82 | + if (!$_['cli_based_cron_possible']) { |
|
| 83 | + print_unescaped('disabled'); |
|
| 84 | + }?>> |
|
| 85 | 85 | <label for="backgroundjobs_cron">Cron</label><br/> |
| 86 | 86 | <em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?> |
| 87 | 87 | <?php if($_['cli_based_cron_possible']) { |
| 88 | - p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); |
|
| 89 | - } else { |
|
| 90 | - print_unescaped(str_replace( |
|
| 91 | - ['{linkstart}', '{linkend}'], |
|
| 92 | - ['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'], |
|
| 93 | - $l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.') |
|
| 94 | - )); |
|
| 95 | - } ?></em> |
|
| 88 | + p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); |
|
| 89 | + } else { |
|
| 90 | + print_unescaped(str_replace( |
|
| 91 | + ['{linkstart}', '{linkend}'], |
|
| 92 | + ['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'], |
|
| 93 | + $l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.') |
|
| 94 | + )); |
|
| 95 | + } ?></em> |
|
| 96 | 96 | |
| 97 | 97 | </p> |
| 98 | 98 | </fieldset> |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <div class="section" id="backgroundjobs"> |
| 30 | - <h2 class="inlineblock"><?php p($l->t('Background jobs'));?></h2> |
|
| 30 | + <h2 class="inlineblock"><?php p($l->t('Background jobs')); ?></h2> |
|
| 31 | 31 | <p class="cronlog inlineblock"> |
| 32 | 32 | <?php if ($_['lastcron'] !== false): |
| 33 | 33 | $relative_time = relative_modified_date($_['lastcron']); |
@@ -36,13 +36,13 @@ discard block |
||
| 36 | 36 | $absolute_time = $formatter->formatDateTime($_['lastcron'], 'long', 'long'); |
| 37 | 37 | if (time() - $_['lastcron'] <= 3600): ?> |
| 38 | 38 | <span class="status success"></span> |
| 39 | - <span class="crondate" title="<?php p($absolute_time);?>"> |
|
| 40 | - <?php p($l->t("Last job ran %s.", [$relative_time]));?> |
|
| 39 | + <span class="crondate" title="<?php p($absolute_time); ?>"> |
|
| 40 | + <?php p($l->t("Last job ran %s.", [$relative_time])); ?> |
|
| 41 | 41 | </span> |
| 42 | 42 | <?php else: ?> |
| 43 | 43 | <span class="status error"></span> |
| 44 | - <span class="crondate" title="<?php p($absolute_time);?>"> |
|
| 45 | - <?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time]));?> |
|
| 44 | + <span class="crondate" title="<?php p($absolute_time); ?>"> |
|
| 45 | + <?php p($l->t("Last job execution ran %s. Something seems wrong.", [$relative_time])); ?> |
|
| 46 | 46 | </span> |
| 47 | 47 | <?php endif; |
| 48 | 48 | else: ?> |
@@ -51,13 +51,13 @@ discard block |
||
| 51 | 51 | endif; ?> |
| 52 | 52 | </p> |
| 53 | 53 | <a target="_blank" rel="noreferrer noopener" class="icon-info" |
| 54 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 54 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 55 | 55 | href="<?php p(link_to_docs('admin-background-jobs')); ?>"></a> |
| 56 | 56 | |
| 57 | - <p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.'));?></p> |
|
| 57 | + <p class="settings-hint"><?php p($l->t('For optimal performance it\'s important to configure background jobs correctly. For bigger instances \'Cron\' is the recommended setting. Please see the documentation for more information.')); ?></p> |
|
| 58 | 58 | <form action="#"> |
| 59 | 59 | <fieldset> |
| 60 | - <legend class="hidden-visually"><?php p($l->t('Pick background job setting'));?></legend> |
|
| 60 | + <legend class="hidden-visually"><?php p($l->t('Pick background job setting')); ?></legend> |
|
| 61 | 61 | <p> |
| 62 | 62 | <input type="radio" name="mode" value="ajax" class="radio" |
| 63 | 63 | id="backgroundjobs_ajax" <?php if ($_['backgroundjobs_mode'] === "ajax") { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | }?>> |
| 85 | 85 | <label for="backgroundjobs_cron">Cron</label><br/> |
| 86 | 86 | <em><?php p($l->t("Use system cron service to call the cron.php file every 15 minutes.")); ?> |
| 87 | - <?php if($_['cli_based_cron_possible']) { |
|
| 87 | + <?php if ($_['cli_based_cron_possible']) { |
|
| 88 | 88 | p($l->t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); |
| 89 | 89 | } else { |
| 90 | 90 | print_unescaped(str_replace( |