Index: trunk/extensions/Wikidata/WiktionaryZ/SpecialSuggest.php |
— | — | @@ -111,6 +111,7 @@ |
112 | 112 | $orderBy = $rowText; |
113 | 113 | |
114 | 114 | $sql .= $searchCondition . " ORDER BY $orderBy LIMIT 10"; |
| 115 | + |
115 | 116 | $queryResult = $dbr->query($sql); |
116 | 117 | $idAttribute = new Attribute("id", "ID", "id"); |
117 | 118 | |
— | — | @@ -151,7 +152,7 @@ |
152 | 153 | } |
153 | 154 | |
154 | 155 | function getSQLToSelectPossibleAttributes($objectId, $attributesLevel, $attributesType) { |
155 | | - global $wgDefaultClassMids; |
| 156 | +// global $wgDefaultClassMids; |
156 | 157 | |
157 | 158 | $dbr = & wfGetDB(DB_SLAVE); |
158 | 159 | $sql = 'SELECT attribute_mid,spelling' . |
— | — | @@ -165,8 +166,8 @@ |
166 | 167 | ' AND uw_class_attributes.attribute_type LIKE ' . $dbr->addQuotes($attributesType) . |
167 | 168 | ' AND ((uw_class_membership.class_member_mid = ' . $objectId . |
168 | 169 | ' AND ' . getLatestTransactionRestriction('uw_class_membership') . ')'; |
169 | | - foreach ($wgDefaultClassMids as $mid) |
170 | | - $sql .= ' OR uw_class_attributes.class_mid = ' . $mid; |
| 170 | +// foreach ($wgDefaultClassMids as $mid) |
| 171 | +// $sql .= ' OR uw_class_attributes.class_mid = ' . $mid; |
171 | 172 | $sql .= ')'; |
172 | 173 | return $sql; |
173 | 174 | } |