*/
$wgRemoteUploads = false;
$wgDisableAnonTalk = false;
+/**
+ * Do DELETE/INSERT for link updates instead of incremental
+ */
+$wgUseDumbLinkUpdate = false;
/**
* Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
*/
function doUpdate() {
- global $wgUseBetterLinksUpdate, $wgLinkCache, $wgDBtransactions;
+ global $wgUseDumbLinkUpdate, $wgLinkCache, $wgDBtransactions;
global $wgEnablePersistentLC, $wgUseCategoryMagic;
+ if ( $wgUseDumbLinkUpdate ) {
+ $this->doDumbUpdate();
+ return;
+ }
+
$fname = 'LinksUpdate::doUpdate';
wfProfileIn( $fname );
array_push( $arr, array(
'pl_from' => $this->mId,
'pl_namespace' => $target->getNamespace(),
- 'pl_title' => $target->getTitle() ) );
+ 'pl_title' => $target->getDBkey() ) );
}
$dbw->insert( 'pagelinks', $arr, $fname, array( 'IGNORE' ) );
}