Index: trunk/extensions/UploadWizard/SpecialUploadWizard.php |
— | — | @@ -27,14 +27,14 @@ |
28 | 28 | // but then we'll need to process non-JS uploads in the same way Special:Upload does. |
29 | 29 | $this->simpleForm = new UploadWizardSimpleForm(); |
30 | 30 | $this->simpleForm->setTitle( |
31 | | - SpecialPage::getPage( 'Upload' )->getTitle() |
| 31 | + SpecialPage::getTitleFor( 'Upload' ) |
32 | 32 | ); |
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Replaces default execute method |
37 | 37 | * Checks whether uploading enabled, user permissions okay, |
38 | | - * @param subpage, e.g. the "foo" in Special:UploadWizard/foo. |
| 38 | + * @param $subPage, e.g. the "foo" in Special:UploadWizard/foo. |
39 | 39 | */ |
40 | 40 | public function execute( $subPage ) { |
41 | 41 | global $wgLang, $wgUser, $wgOut, $wgExtensionAssetsPath, |
— | — | @@ -42,19 +42,18 @@ |
43 | 43 | |
44 | 44 | // side effects: if we can't upload, will print error page to wgOut |
45 | 45 | // and return false |
46 | | - if (! ( $this->isUploadAllowed() && $this->isUserUploadAllowed( $wgUser ) ) ) { |
| 46 | + if ( !( $this->isUploadAllowed() && $this->isUserUploadAllowed( $wgUser ) ) ) { |
47 | 47 | return; |
48 | 48 | } |
49 | 49 | |
50 | 50 | $this->setHeaders(); |
51 | 51 | $this->outputHeader(); |
52 | | - |
53 | 52 | |
54 | 53 | // fallback for non-JS |
55 | | - $wgOut->addHTML('<noscript>'); |
| 54 | + $wgOut->addHTML( '<noscript>' ); |
56 | 55 | $wgOut->addHTML( '<p class="errorbox">' . wfMsg( 'mwe-upwiz-js-off' ) . '</p>' ); |
57 | 56 | $this->simpleForm->show(); |
58 | | - $wgOut->addHTML('</noscript>'); |
| 57 | + $wgOut->addHTML( '</noscript>' ); |
59 | 58 | |
60 | 59 | |
61 | 60 | // global javascript variables |