Skip to content
Snippets Groups Projects
Commit 2bd71ca2 authored by Tomasz Wolniewicz's avatar Tomasz Wolniewicz
Browse files

Merge branch 'cherry-pick-955c364e' into 'psnc-production'

fixing the output format of edugain_status

See merge request !11
parents 79ee2942 92ca4bc9
No related branches found
No related tags found
1 merge request!11fixing the output format of edugain_status
......@@ -600,7 +600,7 @@ class API {
when no federation code is present an array of code-indexed participating federations with details as described above'
],
'examples' => [
['opt' => ['only_errors'], 'title' => 'only fedrations with problems',],
['opt' => ['only_errors'=>1,], 'title' => 'only fedrations with problems',],
['opt' => ['fed_id' => 'PIONIER-ID',],'title' => 'show status of PIONIER.Id',],
['opt' => ['fed_id' => 'PIONIER-ID',], 'format' => 'json', 'title' => 'show status of PIONIER.Id in JSON',]
]
......@@ -620,7 +620,7 @@ class API {
}
foreach ($edugain->FEDS as $fed) {
if ($fed['feed_problem'] > 0 || $fed['valid_sec'] < $sec) {
$out[] = $fed;
$out[$fed['code']] = $fed;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment