Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-11 18:18:26 +0300
committerMorris Jobke <hey@morrisjobke.de>2015-03-11 18:18:26 +0300
commitf59b286a597764760fd32c8afe60c0dbe9b02fdf (patch)
tree097d661ac7552b8dfdb93f6a71151dec1fb3b6cf /settings
parent7e87cdab4a512987e5b6a3f94b340618d40cd5a6 (diff)
parent266a65510784ba1b497f27eb46ab31132dc8852e (diff)
Merge pull request #14632 from owncloud/backport/14593
Backport/14593
Diffstat (limited to 'settings')
-rw-r--r--settings/admin.php1
-rw-r--r--settings/templates/admin.php22
2 files changed, 23 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 363518ed971..22bc5f308f5 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -80,6 +80,7 @@ $template->assign('allowMailNotification', $appConfig->getValue('core', 'shareap
$template->assign('onlyShareWithGroupMembers', \OC\Share\Share::shareWithGroupMembersOnly());
$databaseOverload = (strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false);
$template->assign('databaseOverload', $databaseOverload);
+$template->assign('cronErrors', $appConfig->getValue('core', 'cronErrors'));
// warn if Windows is used
$template->assign('WindowsWarning', OC_Util::runningOnWindows());
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 1915c8c5c79..9d7e183eace 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -226,7 +226,29 @@ if ($_['suggestedOverwriteCliUrl']) {
</div>
<?php
}
+
+if ($_['cronErrors']) {
+ ?>
+ <div class="section">
+ <h2><?php p($l->t('Cronjob encountered misconfiguration'));?></h2>
+
+ <span class="connectionwarning">
+ <?php p($l->t('It was not possible to execute the cronjob via CLI. The following technical errors have appeared:')); ?>
+ <br/>
+ <ol>
+ <?php foreach(json_decode($_['cronErrors']) as $error) { if(isset($error->error)) {?>
+ <li><?php p($error->error) ?></li>
+ <ul><li><?php p($error->hint) ?></li></ul>
+
+ <?php }};?>
+ </ol>
+ </span>
+
+ </div>
+<?php
+}
?>
+
<div id="postsetupchecks" class="section">
<h2><?php p($l->t('Configuration Checks'));?></h2>
<div class="loading"></div>