r52649 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52648‎ | r52649 | r52650 >
Date:20:19, 1 July 2009
Author:yaron
Status:deferred
Tags:
Comment:
Fix for getDefaultForms() for SMW earlier than 1.4
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc
@@ -93,7 +93,7 @@
9494 // make sure it's in the form namespace
9595 if ($res[0]->getNamespace() == SF_NS_FORM) {
9696 $form_name = $res[0]->getTitle()->getText();
97 - return $form_name;
 97+ return array($form_name);
9898 }
9999 }
100100 // if that didn't work, try any aliases that may exist
@@ -107,7 +107,7 @@
108108 // make sure it's in the form namespace
109109 if ($res[0]->getNamespace() == SF_NS_FORM) {
110110 $form_name = $res[0]->getTitle()->getText();
111 - return $form_name;
 111+ return array($form_name);
112112 }
113113 }
114114 }

Status & tagging log