Mwjames has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79790


Change subject: (Bug 53034) Handling redirects ($redirid == 0)
......................................................................

(Bug 53034) Handling redirects ($redirid == 0)

Change-Id: Ib5184a17eb8e927804a482d0fbc7f1cb5ac0bd54
---
M includes/storage/SQLStore/SMW_SQLStore3_Writers.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMediaWiki 
refs/changes/90/79790/1

diff --git a/includes/storage/SQLStore/SMW_SQLStore3_Writers.php 
b/includes/storage/SQLStore/SMW_SQLStore3_Writers.php
index c1b9d4e..1e90991 100644
--- a/includes/storage/SQLStore/SMW_SQLStore3_Writers.php
+++ b/includes/storage/SQLStore/SMW_SQLStore3_Writers.php
@@ -726,8 +726,9 @@
                        // to ensure that no ghost references exists for an 
deleted oldTitle
                        // @see Title::moveTo(), createRedirect
                        if ( $redirid == 0 ) {
+                               $this->updateRedirects( $oldtitle->getDBkey(), 
$oldtitle->getNamespace() );
                                // Delete any existing data (including 
redirects) from old title
-                               $this->doDataUpdate( new SMWSemanticData( 
SMWDIWikiPage::newFromTitle( $oldtitle ) ) );
+                       //      $this->doDataUpdate( new SMWSemanticData( 
SMWDIWikiPage::newFromTitle( $oldtitle ) ) );
                        }
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/79790
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5184a17eb8e927804a482d0fbc7f1cb5ac0bd54
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Mwjames <jamesin.hongkon...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to