diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-03 12:03:28 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-03 12:03:28 +0200 |
commit | f8c04a4219ec5118b138b4a4676a59258b5402b7 (patch) | |
tree | 0c3872181672ed5c69c1520f5ce6d9fafff3a355 /lib/private/App/InfoParser.php | |
parent | 15a479fb9670e4695f8f23a6b9cc089a0c7c08a1 (diff) | |
parent | cc1d948c2e9ca7be49a22358336f7a00f102d19a (diff) | |
download | nextcloud-server-f8c04a4219ec5118b138b4a4676a59258b5402b7.tar.gz nextcloud-server-f8c04a4219ec5118b138b4a4676a59258b5402b7.zip |
Merge pull request #24392 from owncloud/declare-cron-jobs-in-info.xml
Declare cron jobs in info.xml
Diffstat (limited to 'lib/private/App/InfoParser.php')
-rw-r--r-- | lib/private/App/InfoParser.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/private/App/InfoParser.php b/lib/private/App/InfoParser.php index 21422d40603..e9456550206 100644 --- a/lib/private/App/InfoParser.php +++ b/lib/private/App/InfoParser.php @@ -89,6 +89,9 @@ class InfoParser { if (!array_key_exists('uninstall', $array['repair-steps'])) { $array['repair-steps']['uninstall'] = []; } + if (!array_key_exists('background-jobs', $array)) { + $array['background-jobs'] = []; + } if (array_key_exists('documentation', $array) && is_array($array['documentation'])) { foreach ($array['documentation'] as $key => $url) { @@ -128,6 +131,9 @@ class InfoParser { if (isset($array['repair-steps']['uninstall']['step']) && is_array($array['repair-steps']['uninstall']['step'])) { $array['repair-steps']['uninstall'] = $array['repair-steps']['uninstall']['step']; } + if (isset($array['background-jobs']['job']) && is_array($array['background-jobs']['job'])) { + $array['background-jobs'] = $array['background-jobs']['job']; + } return $array; } @@ -147,10 +153,7 @@ class InfoParser { if (!isset($array[$element])) { $array[$element] = ""; } - /** - * @var \SimpleXMLElement $node - */ - + /** @var \SimpleXMLElement $node */ // Has attributes if ($attributes = $node->attributes()) { $data = [ |