Index: trunk/extensions/UploadWizard/SpecialUploadWizard.php |
— | — | @@ -188,17 +188,20 @@ |
189 | 189 | |
190 | 190 | $linkHtml = ''; |
191 | 191 | $altUploadForm = Title::newFromText( $wgUploadWizardConfig[ 'altUploadForm' ] ); |
192 | | - if ( get_class( $altUploadForm ) == 'Title' ) { |
193 | | - $linkHtml = '<p style="text-align: center;"><a href="' . $altUploadForm->getLocalURL() . '">' |
194 | | - . $wgUploadWizardConfig['altUploadForm'] |
195 | | - .'</a></p>'; |
| 192 | + if ( $altUploadForm instanceof Title ) { |
| 193 | + $linkHtml = Html::rawElement( 'p', array( 'style' => 'text-align: center;' ), |
| 194 | + Html::rawElement( 'a', array( 'href' => $altUploadForm->getLocalURL() ), |
| 195 | + $wgUploadWizardConfig['altUploadForm'] |
| 196 | + ) |
| 197 | + ); |
196 | 198 | } |
197 | 199 | |
198 | 200 | return |
199 | | - '<div id="upload-wizard" class="upload-section">' |
200 | | - . '<p style="text-align: center;">' . wfMsg( 'mwe-upwiz-extension-disabled' ) . '</p>' |
201 | | - . $linkHtml |
202 | | - . '</div>'; |
| 201 | + Html::rawElement( 'div', array( 'id' => 'upload-wizard', 'class' => 'upload-section' ), |
| 202 | + Html::rawElement( 'p', array( 'style' => 'text-align: center' ), wfMsg( 'mwe-upwiz-extension-disabled' ) ) |
| 203 | + . $linkHtml |
| 204 | + ); |
| 205 | + |
203 | 206 | } |
204 | 207 | |
205 | 208 | $tutorialHtml = ''; |