r37117 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37116‎ | r37117 | r37118 >
Date:16:58, 5 July 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
trim parameters, avoid inital spaces
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_RSSlink.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_iCalendar.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_iCalendar.php
@@ -16,10 +16,10 @@
1717 protected function readParameters($params,$outputmode) {
1818 SMWResultPrinter::readParameters($params,$outputmode);
1919 if (array_key_exists('icalendartitle', $this->m_params)) {
20 - $this->m_title = $this->m_params['icalendartitle'];
 20+ $this->m_title = trim($this->m_params['icalendartitle']);
2121 }
2222 if (array_key_exists('icalendardescription', $this->m_params)) {
23 - $this->m_description = $this->m_params['icalendardescription'];
 23+ $this->m_description = trim($this->m_params['icalendardescription']);
2424 }
2525 }
2626
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_RSSlink.php
@@ -17,10 +17,10 @@
1818 protected function readParameters($params,$outputmode) {
1919 SMWResultPrinter::readParameters($params,$outputmode);
2020 if (array_key_exists('rsstitle', $this->m_params)) {
21 - $this->m_title = $this->m_params['rsstitle'];
 21+ $this->m_title = trim($this->m_params['rsstitle']);
2222 }
2323 if (array_key_exists('rssdescription', $this->m_params)) {
24 - $this->m_description = $this->m_params['rssdescription'];
 24+ $this->m_description = trim($this->m_params['rssdescription']);
2525 }
2626 }
2727

Status & tagging log