Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -1628,6 +1628,9 @@ |
1629 | 1629 | } |
1630 | 1630 | } |
1631 | 1631 | // 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 | + } |
1632 | 1635 | if ($new_tid != 0) { |
1633 | 1636 | $db->insert( 'smw_redi2', array('s_title'=>$subject_t, 's_namespace'=>$subject_ns, 'o_id'=>$new_tid), 'SMW::updateRedirects'); |
1634 | 1637 | if ($smwgQEqualitySupport != SMW_EQ_NONE) { |