diff --git a/.htaccess b/.htaccess index 82d37afec5..a301aa9a4d 100644 --- a/.htaccess +++ b/.htaccess @@ -3,7 +3,7 @@ Options +FollowSymLinks RewriteEngine On - RewriteBase / + RewriteBase /chamilogits # Courses home RewriteCond %{QUERY_STRING} ^id_session=0 diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index 12c60714f9..fec3f4841b 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -1110,7 +1110,7 @@ class Exercise { $TBL_EXERCICES = Database::get_course_table(TABLE_QUIZ_TEST); $sql = "UPDATE $TBL_EXERCICES - SET active='-1' WHERE c_id = ".$this->course_id." AND id='".Database::escape_string($this->id)."'"; + SET active='-1' WHERE c_id = ".$this->course_id." AND iid='".Database::escape_string($this->id)."'"; Database::query($sql); api_item_property_update($this->course, TOOL_QUIZ, $this->id, 'QuizDeleted', api_get_user_id()); $this->delete_exercise_order();