r59430 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59429‎ | r59430 | r59431 >
Date:18:07, 25 November 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added new 'plain' option for 'headers' param
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php
@@ -383,7 +383,7 @@
384384 protected function exportFormatParameters() {
385385 return array(
386386 array('name' => 'limit', 'type' => 'int', 'description' => wfMsg('smw_paramdesc_limit')),
387 - array('name' => 'headers', 'type' => 'enumeration', 'description' => wfMsg('smw_paramdesc_headers'), 'values' => array('show', 'hide')),
 387+ array('name' => 'headers', 'type' => 'enumeration', 'description' => wfMsg('smw_paramdesc_headers'), 'values' => array('show', 'hide', 'plain')),
388388 array('name' => 'mainlabel', 'type' => 'string', 'description' => wfMsg('smw_paramdesc_mainlabel')),
389389 array('name' => 'searchlabel', 'type' => 'string', 'description' => wfMsg('smw_paramdesc_searchlabel')),
390390 );
@@ -397,7 +397,7 @@
398398 public function getParameters() {
399399 return array(
400400 array('name' => 'limit', 'type' => 'int', 'description' => wfMsg('smw_paramdesc_limit')),
401 - array('name' => 'headers', 'type' => 'enumeration', 'description' => wfMsg('smw_paramdesc_headers'), 'values' => array('show', 'hide')),
 401+ array('name' => 'headers', 'type' => 'enumeration', 'description' => wfMsg('smw_paramdesc_headers'), 'values' => array('show', 'hide', 'plain')),
402402 array('name' => 'mainlabel', 'type' => 'string', 'description' => wfMsg('smw_paramdesc_mainlabel')),
403403 array('name' => 'link', 'type' => 'enumeration', 'description' => wfMsg('smw_paramdesc_link'), 'values' => array('all', 'subject', 'none')),
404404 );

Status & tagging log