r99221 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99220‎ | r99221 | r99222 >
Date:17:38, 7 October 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
minor fix
Modified paths:
  • /trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
@@ -22,7 +22,7 @@
2323 protected function handleParameters( array $params, $outputmode ) {
2424 parent::handleParameters( $params, $outputmode );
2525
26 - $this->m_params = trim( $params['title'] );
 26+ $this->m_title = trim( $params['title'] );
2727 $this->m_description = trim( $params['icalendardescription'] );
2828 }
2929
@@ -122,8 +122,8 @@
123123 $link->setParameter( $this->m_description, 'description' );
124124 }
125125
126 - if ( array_key_exists( 'limit', $this->m_params ) ) {
127 - $link->setParameter( $this->m_params['limit'], 'limit' );
 126+ if ( array_key_exists( 'limit', $this->params ) ) {
 127+ $link->setParameter( $this->params['limit'], 'limit' );
128128 } else { // use a reasonable default limit
129129 $link->setParameter( 20, 'limit' );
130130 }