Index: trunk/phase3/includes/api/ApiUpload.php |
— | — | @@ -89,9 +89,7 @@ |
90 | 90 | } else if( $this->mParams['httpstatus'] && $this->mParams['sessionkey'] ){ |
91 | 91 | // return the status of the given upload session_key: |
92 | 92 | if( !isset( $_SESSION['wsDownload'][ $this->mParams['sessionkey'] ] ) ){ |
93 | | - return $this->getResult()->addValue( null, $this->getModuleName(), |
94 | | - array( 'error' => 'invalid-session-key' |
95 | | - )); |
| 93 | + return $this->dieUsageMsg( array( 'error' => 'invalid-session-key' ) ); |
96 | 94 | } |
97 | 95 | $sd = & $_SESSION['wsDownload'][$this->mParams['sessionkey']]; |
98 | 96 | // keep passing down the upload sessionkey |
— | — | @@ -302,7 +300,7 @@ |
303 | 301 | 'ignorewarnings' => false, |
304 | 302 | 'done' => false, |
305 | 303 | 'sessionkey' => null, |
306 | | - 'httpstatus' => null, |
| 304 | + 'httpstatus' => false, |
307 | 305 | 'chunksessionkey' => null, |
308 | 306 | 'internalhttpsession' => null, |
309 | 307 | ); |