5451 Commits

Author SHA1 Message Date
moodler
0720313b30 get_course_students can now look for groups as well (doesn't handle
group 0 yet)

get_course_users is more robust (fixes the journal report problem etc)
2004-01-31 03:30:31 +00:00
koenr
27a350e676 missing strings 2004-01-30 23:50:00 +00:00
stronk7
3caa089f49 Some strange line feeds in the latest version. Solved. 2004-01-30 23:15:11 +00:00
gustav_delius
800578b7fe increase mailed to number(2) 2004-01-30 21:44:44 +00:00
gustav_delius
c7cdd6ec82 moved the database update code to where it belongs 2004-01-30 21:40:31 +00:00
stronk7
2b80c9d76a Added str. creatinggroups 2004-01-30 21:16:52 +00:00
stronk7
29856bcba0 Now everything seems to work fine with the new insert_record() function.
Please, test :-)
2004-01-30 19:04:07 +00:00
gustav_delius
3d94772d47 better logging of forum mail errors, see http://moodle.org/mod/forum/discuss.php?d=4865. Required the addition of an extra optional argument $user="" to add_to_log() 2004-01-30 18:21:56 +00:00
moodler
8ff79e8c5b Fixed the counting of submissions for a new function assignment_count_real_submissions() 2004-01-30 16:53:01 +00:00
moodler
d98579dbc9 OK, much better. What was I thinking. :-) 2004-01-30 15:22:43 +00:00
moodler
819110a116 On second thoughts, added hours 2004-01-30 15:16:54 +00:00
moodler
d3128ddf0e Fixed date format 2004-01-30 15:16:04 +00:00
gustav_delius
6077020a60 got rid of bad line endings 2004-01-30 14:50:03 +00:00
moodler
5ea64f4b2f Error message for restricted users 2004-01-30 09:55:57 +00:00
moodler
fcf9c45033 New paratmeter to insert_record called primarykey (defaults to "id")
and removed insert_record_old
2004-01-30 09:04:31 +00:00
moodler
e248a905b4 Whoops ... forgot to check this in 2004-01-30 08:50:53 +00:00
moodler
5476a93df2 Fix the mode handling for "single" forums 2004-01-30 08:45:11 +00:00
moodler
e83c419d06 Check for restricted users and also removed some tabs 2004-01-30 08:31:50 +00:00
moodler
ab39445640 Restrict certain users from changing profile 2004-01-30 08:29:35 +00:00
moodler
cb98d3120c New function to restrict defined users 2004-01-30 08:25:49 +00:00
paca70
77e84a85f2 My php 4.3.4/postgres7.4 combination was thinking
that returned id-column was string and some modules were thingking that theres
insert error if return value is string.
Right now all id-colums is always integer so
this should be ok.
2004-01-30 07:45:36 +00:00
bobopinna
b4e1d00641 Updated by Roberto -Bobo- Pinna 2004-01-30 07:43:54 +00:00
bobopinna
2d263cd84b Updated by Roberto -Bobo- Pinna 2004-01-30 07:36:08 +00:00
moodler
916ac02608 No functional change, just me moodling 2004-01-30 07:29:08 +00:00
moodler
1eff7fef0c Use natural sorting on lists 2004-01-30 07:26:52 +00:00
moodler
9fa6280580 When unenrolling students, remove them from groups too 2004-01-30 06:44:02 +00:00
moodler
bb8c36313c When adding a teacher, remove them as a student. 2004-01-30 05:59:33 +00:00
moodler
a698fc0e92 Simplified logic a bit 2004-01-30 04:02:17 +00:00
moodler
7008b03ca3 Fixed typo bug when getting users 2004-01-30 04:01:19 +00:00
moodler
25be6cfff3 Upgrading ADOdb to 4.11 ... there were lots of little bug fixes 2004-01-30 03:11:47 +00:00
moodler
89f1cea654 Fixed problem with magic quotes 2004-01-30 02:25:02 +00:00
moodler
5c09be163c Don't always use arraymerge in journal_get_users_done() - was causing
bad data sometimes ...
2004-01-30 01:57:00 +00:00
moodler
0892f7bd01 IMPORTANT! CRUCIAL CHANGE TO MAJOR FUNCTION!
Petri Asikainen rewrote insert_record to use ADOdb functions.  It might
be very slightly slower but it gets rid of all the horrible not-quite-working
PostgreSQL workarounds the old one contained.

It worked for him on PostgreSQL 7.4 and for me on MySQL 3.23 and 4.0.15,
so I'm checking it in.

Please test it thoroughly on your test systems.

Since it writes data it has the potential to stuff things up, so be
careful on production systems for a few days.
2004-01-29 15:27:21 +00:00
bobopinna
66e7920caf Updated by Roberto -Bobo- Pinna 2004-01-29 15:13:09 +00:00
bobopinna
99d7c97106 New version from Giorgio Borelli 2004-01-29 14:27:32 +00:00
moodler
1390f203a7 Dont print learning forums table if there aren't any 2004-01-29 05:59:26 +00:00
moodler
36c23cd6a9 Reduce intro text for general forums 2004-01-29 04:58:56 +00:00
moodler
ba39fa10cc Change type of config->value to text (to allow longer info) 2004-01-29 04:13:55 +00:00
stronk7
916bb3daec - some debug info turned off.
- scheduled backups now supports groups info (need to centralize the code!!)
- solved an important issue when restoring users introduced in lib.php v1.44

Bump
2004-01-29 00:14:02 +00:00
stronk7
6be18d4f75 Solved one important issue when restoring users due to a bug in
revision 1.44, when solving bug 946. Tons of thanks to Jacob Romeyn
detecting it.
2004-01-29 00:12:17 +00:00
stronk7
50dbc51fc9 Turn off some debug info. 2004-01-29 00:08:25 +00:00
stronk7
e9163ad481 Now groups are included in scheduled backups.
I think that we should use the same exact code in backup_execute.php
and backup_scheduled.php to avoid duplicating it in two files !!
2004-01-29 00:07:25 +00:00
moodler
643cd42872 Latest tags 2004-01-28 16:46:42 +00:00
moodler
e06a8263a1 Removed function, and updated versions 2004-01-28 14:49:56 +00:00
moodler
279826e26f Yes, finally forum display preferences are preserved. :-) 2004-01-28 14:48:49 +00:00
moodler
066af654c2 Bugfixes to set_user_preference 2004-01-28 14:47:39 +00:00
moodler
70812e39a0 Added new table called "user preferences" which can be used for
storing arbitrary preferences for each user.

Thanks to Jon Papaioannou for the first draft of this code
which I modified.
2004-01-28 14:14:19 +00:00
moodler
ad7101a17b FIxed counting of submissions 2004-01-28 11:03:44 +00:00
koenr
73e7875705 missing strings 2004-01-28 07:41:48 +00:00
koenr
df7177161a found some typo's 2004-01-28 07:41:10 +00:00