diff --git a/main/dropbox/dropbox_download.php b/main/dropbox/dropbox_download.php index b5122003ff..338c9d6fcb 100755 --- a/main/dropbox/dropbox_download.php +++ b/main/dropbox/dropbox_download.php @@ -3,9 +3,7 @@ /** * @package chamilo.dropbox */ -/** - * Code - */ + // including the basic Chamilo initialisation file require_once '../inc/global.inc.php'; @@ -95,7 +93,7 @@ if (!$allowed_to_download) { // the user is allowed to download the file $_SESSION['_seen'][$_course['id']][TOOL_DROPBOX][] = intval($_GET['id']); - $work = new Dropbox_work($_GET['id']); + $work = new Dropbox_Work($_GET['id']); $path = dropbox_cnf('sysPath') . '/' . $work -> filename; //path to file as stored on server if (!Security::check_abs_path($path, dropbox_cnf('sysPath').'/')) { diff --git a/main/exercice/exercise_submit.php b/main/exercice/exercise_submit.php index 1464cc9a9b..147627c870 100755 --- a/main/exercice/exercise_submit.php +++ b/main/exercice/exercise_submit.php @@ -617,8 +617,8 @@ if (!empty ($gradebook) && $gradebook == 'view') { $interbreadcrumb[] = array ('url' => '../gradebook/' . Security::remove_XSS($_SESSION['gradebook_dest']),'name' => get_lang('ToolGradebook')); } -$interbreadcrumb[] = array ("url" => "exercice.php?gradebook=$gradebook", "name" => get_lang('Exercices')); -$interbreadcrumb[] = array ("url" => "#","name" => $objExercise->name); +$interbreadcrumb[] = array ("url" => "exercice.php?".api_get_cidreq(), "name" => get_lang('Exercices')); +$interbreadcrumb[] = array ("url" => "#", "name" => $objExercise->name); if ($origin != 'learnpath') { //so we are not in learnpath tool Display :: display_header(null,'Exercises'); @@ -1002,7 +1002,7 @@ if (!empty($error)) { } '; - echo '