r86762 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86761‎ | r86762 | r86763 >
Date:12:52, 23 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
added some comment with possible fix for smw 1.6
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormLinker.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php
@@ -125,7 +125,11 @@
126126 $store = smwfGetStore();
127127 $title = Title::makeTitleSafe( $page_namespace, $page_name );
128128 $property = SMWPropertyValue::makeProperty( $prop_smw_id );
 129+
129130 $res = $store->getPropertyValues( $title, $property );
 131+ // FIXME: should probably change into something like this for SMW 1.6:
 132+ //$res = $store->getPropertyValues( $title, new SMWDIProperty( $title->getDBkey() ) );
 133+
130134 $form_names = array();
131135 foreach ( $res as $wiki_page_value ) {
132136 $form_title = $wiki_page_value->getTitle();