Commit graph

28996 commits

Author SHA1 Message Date
tjhunt
8368d97916 MDL-3731 - Help file for the Item Analysis report does not explain why Disc. Coeff. is sometimes reported at -999.00. Merged from MOODLE_18_STABLE. 2007-09-21 13:28:53 +00:00
tjhunt
f0bb0a8738 MDL-10338 - quiz index page does not work in weekscss format. Merged from MOODLE_18_STABLE. 2007-09-21 11:10:37 +00:00
tjhunt
b5a16eb72e MDL-6376 - Include quizzes on the MyMoodle page. Initial implementation by Stephen Bourget, with refinements by Tim Hunt. The logic for which quizzes are listed is very similar to the lesson module. 2007-09-21 11:05:04 +00:00
nicolasconnault
0d43714b98 MDL-11328 Added the missing variable 2007-09-21 11:02:30 +00:00
nicolasconnault
caa0886a9d MDL-11351 Removed a redundant check for a multiLang JS variable 2007-09-21 09:13:02 +00:00
stronk7
81267fcb15 Bump. Now we are using a permanent temp table. MDL-11347 2007-09-21 08:53:22 +00:00
stronk7
5cf8d1d9fc temp table usage is out and now we are using the
new permanent context_temp table. Update for
Oracle added, extra NOT EXISTS cluse to avoid
insertion of duplicate records in potential
concurrency and minor refinements. MDL-11347
2007-09-21 08:52:43 +00:00
stronk7
d5d2f8a6f0 Adding the new context_temp permanet table to be used
by build_context_path() . MDL-11347
2007-09-21 08:48:51 +00:00
nicolasconnault
2f6c662f41 MDL-11379 and MDL-11380 fixed 2007-09-21 07:52:52 +00:00
moodler
6421ee7191 Update for latest functions 2007-09-21 05:21:29 +00:00
moodler
bac6d28a6f Fixed the definition of SYSCONTEXTID when it's not 1 (like moodle.org) 2007-09-21 04:55:14 +00:00
moodler
7e17f43b1c Just a small change to make this function a bit more robust, there's still a bug here though 2007-09-21 04:33:50 +00:00
moodler
a365ee56cf Fix for subscription and tracking buttons to remove links and improve accessibility and reduce crawler problems http://tracker.moodle.org/browse/MDLSITE-263 2007-09-21 02:52:51 +00:00
tjhunt
c033e37f16 Notices on restore. 2007-09-20 15:57:02 +00:00
tjhunt
db451e99f6 XHTML Strict. 2007-09-20 15:35:19 +00:00
tjhunt
e63faf2b50 MDL-10376 - since roles and capabilities came along, the quiz was not very gracious if you were logged in as guest, or really logged in on the server, but using guest access to look a a particular course, or were enrolled in a course, but in a role that did not let you preview or attempt quizzes. This patch should clean up the logic for all these cases. 2007-09-20 15:14:24 +00:00
tjhunt
c5ccb82c61 XHTML Strict in question state history table. Merged from MOODLE_18_STABLE. 2007-09-20 15:10:04 +00:00
nicolasconnault
bfbfdb5350 MDL-11350 allowvisiblecoursesinhiddencategories was not used fully in the determination of the course's visibility 2007-09-20 13:15:26 +00:00
skodak
4bf0d891f9 removing bosoleted unit tests: manual grade items do not use item numbers, id number is not generated automatically 2007-09-20 12:30:24 +00:00
skodak
d3f24f5534 fixed short php tag 2007-09-20 12:26:58 +00:00
jmg324
874851f610 MDL-10296 made print_user_picture cater for https possibility in user/edit 2007-09-20 09:18:24 +00:00
toyomoyo
05a71b3341 change restore code to use the more efficient get_user_courses_bycap 2007-09-20 09:16:49 +00:00
toyomoyo
3c13c1eacc removed a slow call from restore code, this is a trouble maker if you have a lot of courses. 2007-09-20 08:58:12 +00:00
skodak
eedae98ef2 MDL-11357 removed _grade_updated() from activities and grade_item class 2007-09-20 07:43:57 +00:00
skodak
ecbf2954da MDL-11347 adding comments with description of UPDATE related problems; minor whitespace and coding style changes 2007-09-20 07:37:50 +00:00
toyomoyo
1dd3930b6c fixing a javascript error when ajax is not enabled 2007-09-20 07:20:15 +00:00
martinlanghoff
85cab9d8cd eaccelerator: never set the mode if we failed to init 2007-09-20 06:51:13 +00:00
moodler
5f0314ab24 Make the accesslib upgrade trigger a redirect 2007-09-20 06:49:52 +00:00
moodler
0b9dcf3df4 Bumping the date and the context path upgrade in case anyone was stuck from yesterday MDL-11347 2007-09-20 06:47:14 +00:00
martinlanghoff
78c3ec2fe8 Revert - dmllib: check $MCACHE->status() before using it 2007-09-20 06:45:29 +00:00
martinlanghoff
369a572502 dmllib: check $MCACHE->status() before using it 2007-09-20 06:42:57 +00:00
toyomoyo
b8ab75ea09 fixing 2 warnings 2007-09-20 05:59:26 +00:00
toyomoyo
9ec6ecb933 changed join onto context table to an outer join because some contexts could be missing during listing of participants 2007-09-20 05:54:32 +00:00
moodler
bb2c22bda5 I renamed these to help general readability of accesslib:
$ad -> $accessdata
    has_cap_fad ->  has_capability_in_accessdata()
    aggr_roles_fad  -> aggregate_roles_from_accessdata()

Resolves MDL-11173
2007-09-20 04:52:54 +00:00
moodler
8762a5b118 Automatic installer.php lang files by installer_builder (20070920) 2007-09-20 04:22:39 +00:00
martinlanghoff
21f10eb03e accesslib: load_all_capabilities() - remember to check_enrolment_plugins()!
When setting up accessdata for a newly-logged-in user, call the
enrolment plugins. Thanks to Matt Clarkson for the heads up.

Affects: MDL-11180
2007-09-20 03:23:12 +00:00
toyomoyo
ba82dd3134 group should probably be passed into get_role_users() 2007-09-20 03:11:51 +00:00
toyomoyo
68ad444b15 fixing a calendar warning 2007-09-20 03:04:53 +00:00
toyomoyo
edeed697de fixing a warning in calendar 2007-09-20 02:57:17 +00:00
toyomoyo
8397874d1b fixing a warning when variable is not an object 2007-09-20 02:45:59 +00:00
martinlanghoff
55a814399f accesslib:build_context_path() refer to dbfamily instead of dbtype
so mysql's various drivers can be used.
2007-09-20 02:45:57 +00:00
toyomoyo
163a5eee2c MDL-11356, set display of grade items to database default (-1) 2007-09-20 02:39:25 +00:00
martinlanghoff
d20559f3e4 accesslib: build_context_path() - better UPDATE SQL
A bit of cleanup on the SQL we use for updates. Unfortunately, MySQL
uses non-SQL-standard syntax for updates reading or updating multiple
tables. After much testing across Pg and MySQL, I boiled it down to
the minimal differences -- but we still have different SQL.

The timings for this on a large reference install, calling
build_context_path(true):

 - MySQL incompatible 1s
 - Petr's fixes 60s -- DB complains of too many writes
 - This commit 24s  -- DB complains of too many writes

Also - fixed a remaining problem with $emptyclause

Affects MDL-11347
2007-09-20 01:03:35 +00:00
martinlanghoff
92b34bdd6c accesslib:build_Context_path() fix $emptyclause
We need 2 different empty clauses, one for updates, anotherone for
selects.
2007-09-20 00:16:22 +00:00
martinlanghoff
413a19dd4c accesslib:build_context_path() - fix $emptyclause to avoid Oracle's dirty hack
accesslib is now clean of Oracle's dirty hack. Thanks Eloy for the idea.

MDL-11347
2007-09-19 23:46:37 +00:00
stronk7
351e55fba6 Delete one excess parenthesis... Applying Bryce's patch to MDL-11347 2007-09-19 22:40:58 +00:00
skodak
203d964a4a MDL-11347 yet more beautification proposed by Eloy 2007-09-19 19:20:18 +00:00
skodak
b37453d73d MDL-11347 yet more beautification proposed by Eloy 2007-09-19 19:13:49 +00:00
skodak
40c670d416 MDL-11347 improving sql syntax - thanks Eloy for comments 2007-09-19 19:01:32 +00:00
mudrd8mz
d456b18f7b Fixes MDL-11327. Error when trying to include a non existing file. 2007-09-19 17:58:03 +00:00