Commit graph

21441 commits

Author SHA1 Message Date
tjhunt
cd06115fa7 Convert mod/quiz/view.php to roles, and further tidy up the code flow in there. This touches other files because I had to change a function in locallib that had an $isteacher parameter.
I have not converted the rest of the quiz, and I don't intend to. I am hoping Moodle.com will do it.

I hope this does not introduce any bugs, but view.php is so complicate (at least it is less complicated than it was) and the quiz has so many options, that it is hard to be sure. This needs lots of testing before 1.7 is released.
2006-08-25 16:03:54 +00:00
tjhunt
6ac7a65d76 Missing language string. 2006-08-25 14:29:47 +00:00
skodak
51195e6f9f fixed missing global $CONTEXT in get_context_instance() 2006-08-25 14:15:52 +00:00
tjhunt
64d8092342 Correct typo. 2006-08-25 11:23:00 +00:00
moodler
a72784d3c6 Just a slight tidy-up 2006-08-25 08:54:22 +00:00
vyshane
1a3e93ffe6 Added has_capability checks 2006-08-25 08:51:50 +00:00
vyshane
25c38f25a1 Added has_capability check 2006-08-25 08:30:25 +00:00
vyshane
6ac96fcb3c Added has_capability checks 2006-08-25 08:27:28 +00:00
toyomoyo
41d7209c7f some (mainly admin realated) capabilities 2006-08-25 08:27:27 +00:00
moodler
fd57975491 Added 3d moving icon for ajax course format 2006-08-25 07:10:22 +00:00
moodler
954fdb4293 FIxed some tabs :(
and added a module-xxxxx CSS id to each item
2006-08-25 07:09:28 +00:00
vyshane
1be4d00d56 Previous committer missed one rename from $edit to $categoryedit. Fixed. 2006-08-25 04:06:41 +00:00
vyshane
e1b5643ff7 Changes to take care of forum upgrade to new roles system. Backed up forums
will also be converted to the new roles system if the backup was made
pre-roles.
2006-08-25 02:41:16 +00:00
vyshane
7f6301c464 We need the newly created course_module id to be passed to the restore
functions of the modules. We need this now for the forum module to convert
forums backed up in 1.6 to use roles upon restore in 1.7. However, this might
be needed for other modules as well if they need conversion to the roles
system.
2006-08-25 02:37:54 +00:00
stronk7
c779eb1a15 Added support for the new upgrade system for main tables. 2006-08-24 22:27:11 +00:00
stronk7
2acf462dd9 Renamed column question_sessions->comment at Eloy's
request since comment is a DB reserved word.
(mimic from sql files) Thanks Tim! B-)
2006-08-24 16:57:39 +00:00
tjhunt
3830553d47 Avoid reserved words in dmllib unit tests.
(Except that TEXT is not a reserved word after all, although some things like TINYTEXT are. Wheird!)
2006-08-24 16:56:59 +00:00
stronk7
81abf10971 MDL-5969 Let multiple choice questions have feedback that does not depend on the chosen answer
(mimic from old sql files)
2006-08-24 16:54:02 +00:00
tjhunt
3e3e5a4030 Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.
I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.
2006-08-24 16:44:15 +00:00
tjhunt
dd4a1bca28 During the conversion datalib -> ddllib, Eloy removed my comment that made it possible to understand how to use table_colum :-( Adding it back. 2006-08-24 15:37:03 +00:00
tjhunt
3ebdddf70f MDL-4816 Fix silly error in my commit for this bug. 2006-08-24 11:37:10 +00:00
tjhunt
b2ba9f6ef3 Fix Eclipse warnings. 2006-08-24 11:36:38 +00:00
tjhunt
2fe0d172f8 Fix PHP syntax error. I wish more developers used Eclipse. 2006-08-24 11:22:24 +00:00
tjhunt
307f045f07 MDL-5969 Let multiple choice questions have feedback that does not depend on the chosen answer
In passing, I fixed MDL-6297 Export of multichoice questions in Moodle XML format doesn't save shuffle option too.
2006-08-24 10:22:43 +00:00
tjhunt
6e557c0806 Fixed syntax error in a PHPdoc comments. 2006-08-24 10:16:54 +00:00
tjhunt
2d30f53dcc Fixed syntax error in a PHPdoc comment. 2006-08-24 10:12:15 +00:00
vinkmar
236c08a56f Added support for phpMyAdmin plugin. 2006-08-24 06:44:35 +00:00
moodler
7468981e67 FIxed roles button on blocks 2006-08-24 03:48:04 +00:00
moodler
eba88175b6 Formatting fixes 2006-08-24 03:37:41 +00:00
moodler
28e7967aea FIxed some notices 2006-08-24 03:28:09 +00:00
moodler
0a0bb38019 Ed Coyne's AJAX course format, with some cleanups done.
More cleanups to come from Ed.

This isn't actually working for me right now but he'll fix it now.

This is completely optional and won't affect any other code right now.
2006-08-24 03:20:37 +00:00
moodler
600212a9a1 FIxing Ed's mistaken checkin 2006-08-24 03:17:53 +00:00
danmarsden
038184e264 MDL-4493 issue with 405 pages for IIS users - must specify actual page, as the notice function does a post - you cannot use the POST Verb on a directory in IIS. 2006-08-24 02:08:59 +00:00
tjhunt
c82f76d050 MDL-4816 Short answer question type considers '100' and '100.' to be the same Actually, this may have affected other question types too. 2006-08-23 21:17:23 +00:00
tjhunt
ac249da55e Clarified comment. 2006-08-23 21:04:04 +00:00
tjhunt
9e8dba7960 MDL-6338 - Short answer questions with ' in the answer don't work. Merged from MOODLE_16_STABLE. Yet another unpleasant quiz bug caused by the current broken way we do things with addslashes. 2006-08-23 19:04:24 +00:00
tjhunt
647bcd4129 Fix getting the context. It did not work during question preview from the question bank when there was no quiz in sight. 2006-08-23 18:37:38 +00:00
tjhunt
a18fa6d5ba Get the contexts without referring to undefined variables. 2006-08-23 15:32:06 +00:00
stronk7
454adccfa9 Adding one PHP close tag that has been missing (but working) since years! 2006-08-23 15:23:53 +00:00
tjhunt
5cae120596 Get the contexts without referring to undefined variables. 2006-08-23 15:12:52 +00:00
thepurpleblob
c81415c77e Merged from STABLE 2006-08-23 14:57:40 +00:00
tjhunt
78fd16a5fb Improved one language string. Thank Mitshiro Yoshida. 2006-08-23 09:23:56 +00:00
moodler
0cfb6a52fb Adding a copyright notice, and mentioning MDL-3717 purely as a test of the
new CVS integration on tracker.moodle.org
2006-08-23 08:39:15 +00:00
toyomoyo
5769734f2a changing default override values 2006-08-23 08:14:14 +00:00
toyomoyo
ae1e00a089 renamed variable so that it doens't get recycled 2006-08-23 08:11:43 +00:00
vyshane
905c4567a2 Removed forum_get_course_forum for forum type teacher. 2006-08-23 07:05:36 +00:00
vyshane
9a7538a35b Fixed notice 2006-08-23 06:56:23 +00:00
toyomoyo
945f88ca15 various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib 2006-08-23 06:36:08 +00:00
toyomoyo
b56d75dd00 fixing a typo 2006-08-23 05:52:39 +00:00
toyomoyo
ed60c54a94 fix for MDL-6326, add support for quiz_feedaback table 2006-08-23 05:39:41 +00:00