r40012 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40011‎ | r40012 | r40013 >
Date:09:17, 26 August 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Return no inlinks using internal properties (Bug 15279).
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -634,7 +634,7 @@
635635 $sql = 's_id=' . $db->addQuotes($sid) . ' AND p_id=smw_id' . $this->getSQLConditions($requestoptions,'smw_sortkey','smw_sortkey');
636636
637637 $result = array();
638 - // NOTE: the following also includes naries, which are now kepn in smw_rels2
 638+ // NOTE: the following also includes naries, which are now kept in smw_rels2
639639 foreach (array('smw_atts2','smw_text2','smw_rels2') as $table) {
640640 $res = $db->select( array($table,'smw_ids'), 'DISTINCT smw_title',
641641 $sql, 'SMW::getProperties', $this->getSQLOptions($requestoptions,'smw_sortkey') );
@@ -656,6 +656,7 @@
657657 if ($value->getTypeID() == '_wpg') {
658658 $oid = $this->getSMWPageID($value->getDBkey(),$value->getNamespace(),$value->getInterwiki());
659659 $sql = 'p_id=smw_id AND o_id=' . $db->addQuotes($oid) .
 660+ ' AND smw_iw=' . $db->addQuotes('') . // only local, non-internal properties
660661 $this->getSQLConditions($requestoptions,'smw_sortkey','smw_sortkey');
661662 $res = $db->select( array('smw_rels2','smw_ids'), 'DISTINCT smw_title',
662663 $sql, 'SMW::getInProperties', $this->getSQLOptions($requestoptions,'smw_sortkey') );

Status & tagging log