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
tjhunt
314fc083d9
MDL-10824 - spaces in javascript URLs are not strictly valid. Merged from MOODLE_18_STABLE.
2007-09-19 17:44:52 +00:00
skodak
554bda0538
MDL-11347 fixed context c in update which Tim's pg did not like much
2007-09-19 17:40:20 +00:00
skodak
1e550d2f65
MDL-11048 fixing some notices and changing the list of correlated tags to comma separated format without apostrophes
2007-09-19 17:34:19 +00:00
tjhunt
1ced9d7b73
MDL-10903 - Wrong capability checked in get_all_instances_in_course should be moodle/course:viewhiddenactivities, not moodle/course:viewhiddencourses. Merged from MOODLE_18_STABLE.
2007-09-19 17:06:31 +00:00
tjhunt
260812ba06
MDL-10972 - The lang string 'fullname', which is normally used for course fullnames, was being used for a person's full name in some quiz reports. This dual usage is not translatable into all languages. Merged from MOODLE_18_STABLE.
2007-09-19 15:52:27 +00:00
skodak
2e0eade37f
MDL-11347 temporary patch for mysql trouble in build_context_path()
2007-09-19 15:51:04 +00:00
skodak
3772df8dee
MDL-11354 ipaddress typo in mnet environment.php
2007-09-19 15:44:31 +00:00
tjhunt
6ef56c991f
MDL-6043 - supplimental - make corse reset function update quiz open and close dates. Thanks to Shamim Rezaei for the implementation, which I edited slightly.
2007-09-19 15:38:14 +00:00
nicolasconnault
41f22daa71
MDL-11353 Completed the implementation. This included a new method in grade_item: get_displaytype(), since that value could be set to default, and we must then look up to course, then site values. And the get_letter() method in grade_grade has been modified to first check the grade_letters table. All works like a dream!
2007-09-19 15:37:46 +00:00
nicolasconnault
ac5b0a4919
MDL-11339 Moved the gradedisplaytype element from user prefs to the display element of the grade_item settings
2007-09-19 14:28:26 +00:00
nicolasconnault
109bf12cda
MDL-11340 Finished!
2007-09-19 14:12:34 +00:00
nicolasconnault
bc6969ddeb
MDL-11340 Almost complete: Just need the "Add grade letter" button
2007-09-19 13:49:26 +00:00
nicolasconnault
dbdffd2c96
MDL-11340 Almost complete: Just need the "Add grade letter" button
2007-09-19 12:45:44 +00:00
tjhunt
fca490bca0
MDL-6315 - When processing a manul grading action, if both the comment and the score are blank - as might be the case on the 'Grade all' page of the manual grading when the teacher uses it to grade some, but not all of the students - then do not record the question as graded. Merged from MOODLE_18_STABLE.
2007-09-19 10:56:24 +00:00
tjhunt
6c554fc9b8
XHTML Strictness. Merged from MOODLE_18_STABLE.
2007-09-19 10:32:09 +00:00
tjhunt
01c4e87acf
MDL-11095 - Use absolute path to include tabs.php, not a relative path, for greater robustness. Merged from MOODLE_18_STABLE.
2007-09-19 10:26:39 +00:00
moodler
95ffcee0bf
Only show SQL feedback during full forced update (ie upgrade)
2007-09-19 09:55:31 +00:00
moodler
c122ad2a49
Just enabling SQL feedback so that errors like we're seeing in MySQL right now are exposed
2007-09-19 09:43:13 +00:00
moodler
47592ea851
New tags file
2007-09-19 08:57:31 +00:00
skodak
caee703562
adding missing closing }
2007-09-19 08:53:24 +00:00
stronk7
c2f8bff82c
Now assignment submodules are handled by the XMLDB editor. Pending commit.
2007-09-19 08:04:11 +00:00
martinlanghoff
dcd6a7755f
accesslib: update PHPDoc with intro to code
...
Explain what we mean by _fad(), $ad and $ctx. Might help resolve MDL-11173
2007-09-19 07:57:10 +00:00