| Index: trunk/extensions/SemanticMediaWiki/RELEASE-NOTES |
| — | — | @@ -4,6 +4,7 @@ |
| 5 | 5 | == SMW 1.6.2 == |
| 6 | 6 | |
| 7 | 7 | * Use of native MediaWiki sortable tables for the table formats. |
| | 8 | +* Fixed separator and filename parameters for the DSV format. |
| 8 | 9 | |
| 9 | 10 | == SMW 1.6.1 == |
| 10 | 11 | |
| Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_DSV.php |
| — | — | @@ -17,6 +17,11 @@ |
| 18 | 18 | protected $separator = ':'; |
| 19 | 19 | protected $fileName = 'result.dsv'; |
| 20 | 20 | |
| | 21 | + public function __construct( $format, $inline, $useValidator = true ) { |
| | 22 | + parent::__construct( $format, $inline ); |
| | 23 | + $this->useValidator = $useValidator; |
| | 24 | + } |
| | 25 | + |
| 21 | 26 | /** |
| 22 | 27 | * @see SMWResultPrinter::handleParameters |
| 23 | 28 | * |
| — | — | @@ -33,7 +38,7 @@ |
| 34 | 39 | $this->separator = trim( $params['separator'] ); |
| 35 | 40 | } |
| 36 | 41 | |
| 37 | | - $this->fileName = str_replace( ' ', '_', $params['increase'] ); |
| | 42 | + $this->fileName = str_replace( ' ', '_', $params['filename'] ); |
| 38 | 43 | } |
| 39 | 44 | |
| 40 | 45 | public function getMimeType( $res ) { |
| — | — | @@ -162,7 +167,8 @@ |
| 163 | 168 | |
| 164 | 169 | $link = $res->getQueryLink( $label ); |
| 165 | 170 | $link->setParameter( 'dsv', 'format' ); |
| 166 | | - $link->setParameter( $this->separator, 'sep' ); |
| | 171 | + $link->setParameter( $this->separator, 'separator' ); |
| | 172 | + $link->setParameter( $this->fileName, 'filename' ); |
| 167 | 173 | |
| 168 | 174 | if ( array_key_exists( 'mainlabel', $this->m_params ) && $this->m_params['mainlabel'] !== false ) { |
| 169 | 175 | $link->setParameter( $this->m_params['mainlabel'], 'mainlabel' ); |