r111954 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111953‎ | r111954 | r111955 >
Date:19:00, 20 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r111953
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php
@@ -192,9 +192,11 @@
193193 public function getParameters() {
194194 $params = parent::getParameters();
195195
196 - $params['galleryformat'] = new Parameter( 'galleryformat', Parameter::TYPE_STRING, '' );
197 - $params['galleryformat']->setMessage( 'srf_paramdesc_galleryformat' );
198 - $params['galleryformat']->addCriteria( new CriterionInArray( 'carousel' ) );
 196+ if ( defined( 'MW_SUPPORTS_RESOURCE_MODULES' ) ) {
 197+ $params['galleryformat'] = new Parameter( 'galleryformat', Parameter::TYPE_STRING, '' );
 198+ $params['galleryformat']->setMessage( 'srf_paramdesc_galleryformat' );
 199+ $params['galleryformat']->addCriteria( new CriterionInArray( 'carousel' ) );
 200+ }
199201
200202 $params['perrow'] = new Parameter( 'perrow', Parameter::TYPE_INTEGER );
201203 $params['perrow']->setMessage( 'srf_paramdesc_perrow' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111953applied patch by James Hong Kongjeroendedauw18:48, 20 February 2012