r36968 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36967‎ | r36968 | r36969 >
Date:06:28, 3 July 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
create internal ids also for redirected pages
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -1628,6 +1628,9 @@
16291629 }
16301630 }
16311631 // finally, write the new redirect AND refresh your internal canonical id cache!
 1632+ if ($sid == 0) {
 1633+ $sid = $this->makeSMWPageID($subject_t, $subject_ns, '', false);
 1634+ }
16321635 if ($new_tid != 0) {
16331636 $db->insert( 'smw_redi2', array('s_title'=>$subject_t, 's_namespace'=>$subject_ns, 'o_id'=>$new_tid), 'SMW::updateRedirects');
16341637 if ($smwgQEqualitySupport != SMW_EQ_NONE) {

Status & tagging log