Index: trunk/extensions/Deployment/specials/SpecialExtensions.php |
— | — | @@ -57,6 +57,17 @@ |
58 | 58 | |
59 | 59 | // If the user is authorized, display the page, if not, show an error. |
60 | 60 | if ( $this->userCanExecute( $wgUser ) ) { |
| 61 | + $wgOut->addHTML( |
| 62 | + Html::element( |
| 63 | + 'button', |
| 64 | + array( |
| 65 | + 'type' => 'button', |
| 66 | + 'onclick' => 'window.location="' . Xml::escapeJsString( SpecialPage::getTitleFor( 'install' )->getFullURL() ) . '"' |
| 67 | + ), |
| 68 | + wfMsg( 'add-new-extensions' ) |
| 69 | + ) |
| 70 | + ); |
| 71 | + |
61 | 72 | $wgOut->addWikiText( $this->getExtensionList() ); |
62 | 73 | } else { |
63 | 74 | $this->displayRestrictionError(); |
Index: trunk/extensions/Deployment/Deployment.i18n.php |
— | — | @@ -31,6 +31,9 @@ |
32 | 32 | 'update-title' => 'MediaWiki updates', |
33 | 33 | 'install-title' => 'Install extensions', |
34 | 34 | |
| 35 | + // Special:Extensions |
| 36 | + 'add-new-extensions' => 'Add new', |
| 37 | + |
35 | 38 | // Filesystem: FTP |
36 | 39 | 'deploy-ftp-not-loaded' => 'The FTP PHP extension is not available', |
37 | 40 | 'deploy-ftp-ssl-not-loaded' => 'The loaded FTP PHP extension does not support SSL', |