From 87c8bdc0c4371c7f0ad8370200407db20c3eb188 Mon Sep 17 00:00:00 2001 From: Nathan Glasl Date: Tue, 15 Mar 2016 11:19:03 +1100 Subject: [PATCH] Updating the module to support 3.2.X. --- code/tasks/MisdirectionHistoricalLinkMappingTask.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/tasks/MisdirectionHistoricalLinkMappingTask.php b/code/tasks/MisdirectionHistoricalLinkMappingTask.php index 268afc1..219ba38 100644 --- a/code/tasks/MisdirectionHistoricalLinkMappingTask.php +++ b/code/tasks/MisdirectionHistoricalLinkMappingTask.php @@ -135,9 +135,7 @@ protected function addRecord($record) { // This is only used retain the latest version of the record. - DB::prepared_query('REPLACE INTO ?(?) VALUES(?, ?, ?, ?, ?);', array( - $this->replayTable, - $this->replaceColumnString, + DB::prepared_query("REPLACE INTO {$this->replayTable}({$this->replaceColumnString}) VALUES(?, ?, ?, ?, ?);", array( $record['RecordID'], $record['ID'], $record['ParentID'],