r22274 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22273‎ | r22274 | r22275 >
Date:22:47, 19 May 2007
Author:kim
Status:old
Tags:
Comment:
Slight tweaks to getAttributesFor...
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php
@@ -210,7 +210,7 @@
211211
212212 # langauge is the 2 letter wikimedia code. use "<ANY>" if you don't want language filtering
213213 # (any does set limit 1 hmph)
214 -function getSQLToSelectPossibleAttributes($objectId, $attributesLevel, $attributesType, $language) {
 214+function getSQLToSelectPossibleAttributes($objectId, $attributesLevel, $attributesType, $language="<ANY>") {
215215 global
216216 $wgDefaultClassMids;
217217 global $wgUser;
@@ -252,10 +252,10 @@
253253 $defaultClassRestriction .
254254 ')';
255255
256 - if ($language="<ANY>") {
257 - $sql .=
258 - ' LIMIT 1 ';
259 - }
 256+ //if ($language="<ANY>") {
 257+ // $sql .=
 258+ // ' LIMIT 1 ';
 259+ //}
260260
261261
262262 return $sql;