r89928 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89927‎ | r89928 | r89929 >
Date:13:16, 12 June 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed handling of default forms
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_CompatibilityHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_CompatibilityHelpers.php
@@ -86,7 +86,7 @@
8787 return new SMWDIContainer( $semanticData );
8888 case SMWDataItem::TYPE_WIKIPAGE:
8989 if ( $typeid == '__spf' ) {
90 - $pagedbkey = str_replace( ' ', '_', SMWDataValueFactory::findTypeLabel( $dbkeys[0] ) );
 90+ $pagedbkey = str_replace( ' ', '_', $dbkeys[0] );
9191 return new SMWDIWikiPage( $pagedbkey, SF_NS_FORM, '' );
9292 } elseif ( count( $dbkeys ) >= 3 ) {
9393 return new SMWDIWikiPage( $dbkeys[0], floatval( $dbkeys[1] ), $dbkeys[2] );