r79819 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79818‎ | r79819 | r79820 >
Date:14:42, 7 January 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
URL parameter for selecting RDf syntax is called "syntax" (was "format" in initial version)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php
@@ -104,11 +104,11 @@
105105 */
106106 protected function startRDFExport() {
107107 global $wgOut, $wgRequest;
108 - $format = $wgRequest->getText( 'format' );
109 - if ( $format == '' ) $format = $wgRequest->getVal( 'format' );
 108+ $syntax = $wgRequest->getText( 'syntax' );
 109+ if ( $syntax == '' ) $syntax = $wgRequest->getVal( 'syntax' );
110110 $wgOut->disable();
111111 ob_start();
112 - if ( $format == 'turtle' ) {
 112+ if ( $syntax == 'turtle' ) {
113113 $mimetype = 'application/x-turtle'; // may change to 'text/turtle' at some time, watch Turtle development
114114 $serializer = new SMWTurtleSerializer();
115115 } else { // rdfxml as default

Status & tagging log