Browse Source

[svn r15292] Fixed error in HotPotatoes copy in course copy - see FS#2532

Yannick Warnier 17 years ago
parent
commit
3f9fbc325a
1 changed files with 3 additions and 5 deletions
  1. 3 5
      main/coursecopy/classes/CourseRestorer.class.php

+ 3 - 5
main/coursecopy/classes/CourseRestorer.class.php

@@ -1,12 +1,9 @@
-<?php
-
-
-// $Id: CourseRestorer.class.php 14324 2008-02-20 02:46:30Z yannoo $
+<?php // $Id: CourseRestorer.class.php 15292 2008-05-15 05:33:23Z yannoo $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
 
-	Copyright (c) 2004 Dokeos S.A.
+	Copyright (c) 2008 Dokeos SPRL
 	Copyright (c) 2003 Ghent University (UGent)
 	Copyright (c) 2001 Universite catholique de Louvain (UCL)
 	Copyright (c) Bart Mollet (bart.mollet@hogent.be)
@@ -857,6 +854,7 @@ class CourseRestorer
 	function get_new_id($tool,$ref)
 	{
 		//transform $tool into one backup/restore constant
+		if($tool == 'hotpotatoes'){$tool = 'document';}
 		if(!empty($this->course->resources[$tool][$ref]->destination_id)){
 			return $this->course->resources[$tool][$ref]->destination_id;
 		}