r38752 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38751‎ | r38752 | r38753 >
Date:06:51, 7 August 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Fix after Title to DataValue API change
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Hooks.php
@@ -208,9 +208,9 @@
209209 } elseif ($namespace == SMW_NS_TYPE) {
210210 $dv = SMWDataValueFactory::newSpecialValue(SMW_SP_HAS_TYPE,$title->getDBkey());
211211 $subjects = $store->getSpecialSubjects(SMW_SP_HAS_TYPE, $dv);
212 - foreach ($subjects as $titlesofpropertypagestoupdate) {
213 - $subjectsPropertyPages = $store->getAllPropertySubjects($titlesofpropertypagestoupdate);
214 - $jobs[] = new SMWUpdateJob($titlesofpropertypagestoupdate);
 212+ foreach ($subjects as $valueofpropertypagestoupdate) {
 213+ $subjectsPropertyPages = $store->getAllPropertySubjects($valueofpropertypagestoupdate->getTitle());
 214+ $jobs[] = new SMWUpdateJob($valueofpropertypagestoupdate->getTitle());
215215 foreach ($subjectsPropertyPages as $titleOfPageToUpdate) {
216216 $jobs[] = new SMWUpdateJob($titleOfPageToUpdate);
217217 }

Status & tagging log