r113950 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113949‎ | r113950 | r113951 >
Date:20:22, 15 March 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
tweak default img width
Modified paths:
  • /trunk/extensions/EducationProgram/EducationProgram.settings.php (modified) (history)
  • /trunk/extensions/EducationProgram/includes/EPOAPager.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/EducationProgram.settings.php
@@ -34,6 +34,7 @@
3535 ),
3636 'ambassadorCommonsUrl' => 'https://commons.wikimedia.org/wiki/Special:UploadWizard',
3737 'citylessCountries' => array( 'BT', 'BV', 'IO', 'VG', 'TD', 'CX', 'CC', 'KM', 'DJ', 'GQ', 'FK', 'FX', 'TF', 'GW', 'HM', 'KI', 'YT', 'MS', 'NR', 'NU', 'NF', 'PN', 'SH', 'PM', 'WS', 'SC', 'GS', 'SJ', 'TK', 'TP', 'TV', 'UM', 'VU', 'EH' ),
 38+ 'ambassadorImgWidth' => 140
3839 );
3940 }
4041
Index: trunk/extensions/EducationProgram/includes/EPOAPager.php
@@ -87,7 +87,7 @@
8888 $value = '';
8989
9090 if ( $file !== false ) {
91 - $thumb = $file->transform( array( 'width' => 200 ) );
 91+ $thumb = $file->transform( array( 'width' => EPSettings::get( 'ambassadorImgWidth' ) ) );
9292
9393 if ( $thumb && !$thumb->isError() ) {
9494 $value = $thumb->toHtml();

Status & tagging log