Skip to content

Commit

Permalink
[tools] Fix wrong path in recreate_conflicts.php (aces#8292)
Browse files Browse the repository at this point in the history
This fixes the wrong path in the require_once for recreate_conflict.
It also passes a missing LorisInstance object to the ConflictDetector
function.

Resolves aces#8063.
  • Loading branch information
driusan authored and zaliqarosli committed Mar 6, 2023
1 parent 9a4ffe5 commit 713ce2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/recreate_conflicts.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
* @link https://www.github.com/aces/Loris/
*/

require_once __DIR__ . 'generic_includes.php';
require_once __DIR__ . '/generic_includes.php';

$config = NDB_Config::singleton();
$db = Database::singleton();
$db = $lorisInstance->getDatabaseConnection();

/**
* HELP SCREEN
Expand Down Expand Up @@ -94,6 +94,7 @@
print "Recreating conflicts for " . $instrument['Test_name'] .
':'. $instrument['CommentID'] . "\n";
$diff = ConflictDetector::detectConflictsForCommentIds(
$lorisInstance,
$instrument['Test_name'],
$instrument['CommentID'],
$instrument['DDECommentID']
Expand Down

0 comments on commit 713ce2a

Please sign in to comment.