Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | |
212 | 212 | # langauge is the 2 letter wikimedia code. use "<ANY>" if you don't want language filtering |
213 | 213 | # (any does set limit 1 hmph) |
214 | | -function getSQLToSelectPossibleAttributes($objectId, $attributesLevel, $attributesType, $language) { |
| 214 | +function getSQLToSelectPossibleAttributes($objectId, $attributesLevel, $attributesType, $language="<ANY>") { |
215 | 215 | global |
216 | 216 | $wgDefaultClassMids; |
217 | 217 | global $wgUser; |
— | — | @@ -252,10 +252,10 @@ |
253 | 253 | $defaultClassRestriction . |
254 | 254 | ')'; |
255 | 255 | |
256 | | - if ($language="<ANY>") { |
257 | | - $sql .= |
258 | | - ' LIMIT 1 '; |
259 | | - } |
| 256 | + //if ($language="<ANY>") { |
| 257 | + // $sql .= |
| 258 | + // ' LIMIT 1 '; |
| 259 | + //} |
260 | 260 | |
261 | 261 | |
262 | 262 | return $sql; |