diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 19:26:37 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 19:26:37 +0000 |
commit | 8048313e87b9fd5ab6734e29a0e951524fa33e45 (patch) | |
tree | 556f70ba4a4c70cbd4890e1d90317d2a636e2d9e /views/default/api | |
parent | 17c17807cc0b63d322d56acfae4f30399041cdb5 (diff) | |
download | elgg-8048313e87b9fd5ab6734e29a0e951524fa33e45.tar.gz elgg-8048313e87b9fd5ab6734e29a0e951524fa33e45.tar.bz2 |
Standardized more files.
git-svn-id: http://code.elgg.org/elgg/trunk@3554 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/api')
-rw-r--r-- | views/default/api/output.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/views/default/api/output.php b/views/default/api/output.php index 112b09e64..57b8461ea 100644 --- a/views/default/api/output.php +++ b/views/default/api/output.php @@ -1,18 +1,18 @@ <?php - /** - * Elgg API default output - * This outputs the api in a human readable way. - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * - */ +/** + * Elgg API default output + * This outputs the api in a human readable way. + * + * @package Elgg + * @subpackage Core + * @author Curverider Ltd + * @link http://elgg.org/ + * + */ + +$result = $vars['result']; +$export = $result->export(); - $result = $vars['result']; - $export = $result->export(); - ?> <div id="api_result"> <table width="100%"> @@ -24,19 +24,19 @@ echo "**** ERROR ({$export->status}) ****"; ?> </td></tr> - + <?php if ($export->message!="") { ?> <tr><td width="100" valign="top"><b>Message:</b></td> <td><?php echo $export->message; ?></td></tr> <?php } ?> <?php if ($export->result) { ?> <tr><td width="100" valign="top"><b>Result:</b></td> <td><pre><?php print_r($export->result); ?></pre></td></tr> <?php } ?> - - + + <?php if ($export->pam) { ?> <tr><td width="100" valign="top"><b>PAM:</b></td> <td><pre><?php print_r($export->pam); ?></pre></td></tr> <?php } ?> - + <?php if ($export->runtime_errors) { ?> <tr><td width="100" valign="top"><b>Runtime:</b></td> <td><pre><?php print_r($export->runtime_errors); ?></pre></td></tr> <?php } ?> |