r47079 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47078‎ | r47079 | r47080 >
Date:12:43, 10 February 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
keep searchlabel parameter as a download filename for the JSON export
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_JSONlink.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_JSONlink.php
@@ -113,6 +113,9 @@
114114 if(array_key_exists('callback', $this->m_params)) {
115115 $link->setParameter(htmlspecialchars($this->m_params['callback']),'callback');
116116 }
 117+ if ($this->getSearchLabel(SMW_OUTPUT_WIKI) != '') { // used as a file name
 118+ $link->setParameter($this->getSearchLabel(SMW_OUTPUT_WIKI),'searchlabel');
 119+ }
117120 if(array_key_exists('limit', $this->m_params)) {
118121 $link->setParameter(htmlspecialchars($this->m_params['limit']),'limit');
119122 }

Status & tagging log