Index: trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php |
— | — | @@ -192,9 +192,11 @@ |
193 | 193 | public function getParameters() { |
194 | 194 | $params = parent::getParameters(); |
195 | 195 | |
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 | + } |
199 | 201 | |
200 | 202 | $params['perrow'] = new Parameter( 'perrow', Parameter::TYPE_INTEGER ); |
201 | 203 | $params['perrow']->setMessage( 'srf_paramdesc_perrow' ); |