diff options
| author | spiderr <spiderr@bitweaver.org> | 2019-05-29 21:10:17 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2019-05-29 21:10:17 -0400 |
| commit | 1e18af965bdc7d4dde03e582a80bcd6b1264fc62 (patch) | |
| tree | ff4c90070e2a13a2451eb7d878e9207b6faee125 /admin | |
| parent | cab532c5123e2c7c476d35770bfb351e6056e6e3 (diff) | |
| download | users-1e18af965bdc7d4dde03e582a80bcd6b1264fc62.tar.gz users-1e18af965bdc7d4dde03e582a80bcd6b1264fc62.tar.bz2 users-1e18af965bdc7d4dde03e582a80bcd6b1264fc62.zip | |
flip api->outputJson call to match BitSystem
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/api_inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/api_inc.php b/admin/api_inc.php index ee8a4e1..6fe98c6 100644 --- a/admin/api_inc.php +++ b/admin/api_inc.php @@ -12,9 +12,9 @@ function bituser_api_handler( $pMethod, $pRequest ) { // case 'PUT': $newUser = new BitUser(); if( $newUser->register( $pRequest ) ) { - $gApi->outputJson( 200, $newUser->exportHash() ); + $gApi->outputJson( $newUser->exportHash(), 200 ); } else { - $gApi->outputJson( HttpStatusCodes::HTTP_CONFLICT, $newUser->mErrors ); + $gApi->outputJson( $newUser->mErrors, HttpStatusCodes::HTTP_CONFLICT ); } break; @@ -22,7 +22,7 @@ function bituser_api_handler( $pMethod, $pRequest ) { $gApi->verifyAuthorization(); $gContent = &$gBitUser; $gContent->verifyViewPermission(); - $gApi->outputJson( HttpStatusCodes::HTTP_OK, $gContent->exportHash() ); + $gApi->outputJson( $gContent->exportHash(), HttpStatusCodes::HTTP_OK ); break; case 'DELETE': |
