Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadWizard.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | protected function getPageContent( $pageName, $parse = false, $langCode = null ) { |
188 | 188 | $content = false; |
189 | 189 | |
190 | | - if ( trim( $pageName ) != '' ) { |
| 190 | + if ( trim( $pageName ) !== '' ) { |
191 | 191 | if ( is_null( $langCode ) ) { |
192 | 192 | $langCode = $this->getLanguage()->getCode(); |
193 | 193 | } |
— | — | @@ -252,14 +252,14 @@ |
253 | 253 | // Custom message if logged-in users without any special rights can upload |
254 | 254 | $this->getOutput()->showErrorPage( 'uploadnologin', 'uploadnologintext' ); |
255 | 255 | } else { |
256 | | - $this->getOutput()->permissionRequired( 'upload' ); |
| 256 | + throw new PermissionsError( 'upload' ); |
257 | 257 | } |
258 | 258 | return false; |
259 | 259 | } |
260 | 260 | |
261 | 261 | // Check blocks |
262 | 262 | if ( $user->isBlocked() ) { |
263 | | - $this->getOutput()->blockedPage(); |
| 263 | + throw new UserBlockedError( $this->getUser()->mBlock ); |
264 | 264 | return false; |
265 | 265 | } |
266 | 266 | |