Browse Source

[svn r12831] Getting $cid from the session

Yannick Warnier 17 years ago
parent
commit
67ffae4d4c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/exercice/showinframes.php

+ 2 - 2
main/exercice/showinframes.php

@@ -22,7 +22,7 @@
 *	Code library for HotPotatoes integration.
 *	@package dokeos.exercise
 * 	@author Istvan Mandak
-* 	@version $Id: showinframes.php 10789 2007-01-18 19:18:27Z pcool $
+* 	@version $Id: showinframes.php 12831 2007-08-01 17:22:34Z yannoo $
 */
 
 /*
@@ -37,7 +37,7 @@ require_once(api_get_path(SYS_PATH).'main/exercice/hotpotatoes.lib.php');
 
 // init
 $doc_url=urldecode($_GET['file']);
-$cid = $_course['official_code'];
+$cid = api_get_course_id();
 $documentPath= api_get_path(SYS_COURSE_PATH).$_course['path']."/document";
 $documentWebPath= api_get_path(WEB_COURSE_PATH).$_course['path']."/document";
 $origin = $_REQUEST['origin'];