r70752 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70751‎ | r70752 | r70753 >
Date:07:47, 9 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added 'add new' button on Special:Extensions like in WP
Modified paths:
  • /trunk/extensions/Deployment/Deployment.i18n.php (modified) (history)
  • /trunk/extensions/Deployment/specials/SpecialExtensions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Deployment/specials/SpecialExtensions.php
@@ -57,6 +57,17 @@
5858
5959 // If the user is authorized, display the page, if not, show an error.
6060 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+
6172 $wgOut->addWikiText( $this->getExtensionList() );
6273 } else {
6374 $this->displayRestrictionError();
Index: trunk/extensions/Deployment/Deployment.i18n.php
@@ -31,6 +31,9 @@
3232 'update-title' => 'MediaWiki updates',
3333 'install-title' => 'Install extensions',
3434
 35+ // Special:Extensions
 36+ 'add-new-extensions' => 'Add new',
 37+
3538 // Filesystem: FTP
3639 'deploy-ftp-not-loaded' => 'The FTP PHP extension is not available',
3740 'deploy-ftp-ssl-not-loaded' => 'The loaded FTP PHP extension does not support SSL',

Status & tagging log