Index: trunk/phase3/includes/upload/UploadFromChunks.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | } |
40 | 40 | |
41 | 41 | public function initialize( $done, $filename, $sessionKey, $path, |
42 | | - $fileSize, $sessionData ) |
| 42 | + $fileSize, $sessionData ) |
43 | 43 | { |
44 | 44 | $this->initFromSessionKey( $sessionKey, $sessionData ); |
45 | 45 | |
— | — | @@ -90,14 +90,14 @@ |
91 | 91 | protected function initFromSessionKey( $sessionKey, $sessionData ) { |
92 | 92 | // testing against null because we don't want to cause obscure |
93 | 93 | // bugs when $sessionKey is full of "0" |
94 | | - if ( !$sessionKey === null ) { |
| 94 | + if ( $sessionKey !== null ) { |
95 | 95 | $this->status = Status::newFromFatal( 'import-token-mismatch' ); |
96 | 96 | return; |
97 | 97 | } |
98 | 98 | $this->sessionKey = $sessionKey; |
99 | 99 | |
100 | 100 | if ( isset( $sessionData[$this->sessionKey]['version'] ) |
101 | | - && $sessionData[$this->sessionKey]['version'] == self::SESSION_VERSION ) |
| 101 | + && $sessionData[$this->sessionKey]['version'] == self::SESSION_VERSION ) |
102 | 102 | { |
103 | 103 | $this->comment = $sessionData[$this->sessionKey]['comment']; |
104 | 104 | $this->pageText = $sessionData[$this->sessionKey]['pageText']; |
— | — | @@ -211,7 +211,7 @@ |
212 | 212 | } else { |
213 | 213 | $this->status = Status::newFatal( 'filenotfound', $this->repoPath ); |
214 | 214 | } |
215 | | - if ( $this->fileSize > $wgMaxUploadSize ) |
| 215 | + if ( $this->fileSize > $wgMaxUploadSize ) |
216 | 216 | $this->status = Status::newFatal( 'largefileserver' ); |
217 | 217 | } |
218 | 218 | |