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

fixing the output format of edugain_status

parent 070fb4c6
No related branches found
No related tags found
1 merge request!10fixing the output format of edugain_status
...@@ -600,7 +600,7 @@ class API { ...@@ -600,7 +600,7 @@ class API {
when no federation code is present an array of code-indexed participating federations with details as described above' when no federation code is present an array of code-indexed participating federations with details as described above'
], ],
'examples' => [ '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',],'title' => 'show status of PIONIER.Id',],
['opt' => ['fed_id' => 'PIONIER-ID',], 'format' => 'json', 'title' => 'show status of PIONIER.Id in JSON',] ['opt' => ['fed_id' => 'PIONIER-ID',], 'format' => 'json', 'title' => 'show status of PIONIER.Id in JSON',]
] ]
...@@ -620,7 +620,7 @@ class API { ...@@ -620,7 +620,7 @@ class API {
} }
foreach ($edugain->FEDS as $fed) { foreach ($edugain->FEDS as $fed) {
if ($fed['feed_problem'] > 0 || $fed['valid_sec'] < $sec) { 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