Two minor fixes: MAMP documentation and missing fields in question.class SQL query
@@ -474,7 +474,7 @@ abstract class Question
WHERE question_id=$question_id AND c_id=".api_get_course_int_id();
Database::query($sql);
} else {
- $sql = "INSERT INTO $TBL_QUESTION_REL_CATEGORY VALUES (".api_get_course_int_id().", $question_id, $category_id)";
+ $sql = "INSERT INTO $TBL_QUESTION_REL_CATEGORY (c_id, question_id, category_id) VALUES (".api_get_course_int_id().", $question_id, $category_id)";
}
@@ -4,4 +4,6 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
+ # The previous redirection doesn't work on MAMP. Use next line instead
+ #RewriteRule ^ main/install/index.php [L]
</IfModule>