Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php |
— | — | @@ -119,10 +119,10 @@ |
120 | 120 | */ |
121 | 121 | public function execute( $par ) { |
122 | 122 | global $wgUser, $wgOut, $wgRequest; |
123 | | - // disable $wgOut - we'll print out the page manually, taking the |
124 | | - // body created by the form, plus the necessary Javascript files, |
125 | | - // and turning them into an HTML page |
126 | | - $wgOut->disable(); |
| 123 | + // disable $wgOut - we'll print out the page manually, taking |
| 124 | + // the body created by the form, plus the necessary Javascript |
| 125 | + // files, and turning them into an HTML page |
| 126 | + $wgOut->disable(); |
127 | 127 | |
128 | 128 | $this->setHeaders(); |
129 | 129 | $this->outputHeader(); |
— | — | @@ -130,6 +130,7 @@ |
131 | 131 | # Check uploading enabled |
132 | 132 | if ( !UploadBase::isEnabled() ) { |
133 | 133 | $wgOut->showErrorPage( 'uploaddisabled', 'uploaddisabledtext' ); |
| 134 | + print $wgOut->getHTML(); |
134 | 135 | return; |
135 | 136 | } |
136 | 137 | |
— | — | @@ -143,18 +144,21 @@ |
144 | 145 | } else { |
145 | 146 | $wgOut->permissionRequired( 'upload' ); |
146 | 147 | } |
| 148 | + print $wgOut->getHTML(); |
147 | 149 | return; |
148 | 150 | } |
149 | 151 | |
150 | 152 | # Check blocks |
151 | 153 | if ( $wgUser->isBlocked() ) { |
152 | 154 | $wgOut->blockedPage(); |
| 155 | + print $wgOut->getHTML(); |
153 | 156 | return; |
154 | 157 | } |
155 | 158 | |
156 | 159 | # Check whether we actually want to allow changing stuff |
157 | 160 | if ( wfReadOnly() ) { |
158 | 161 | $wgOut->readOnlyPage(); |
| 162 | + print $wgOut->getHTML(); |
159 | 163 | return; |
160 | 164 | } |
161 | 165 | |