2400 Commits

Author SHA1 Message Date
moodler
001fc706ef fixing bugs in event table 2006-01-31 08:37:00 +00:00
moodler
136b6ab33f changed to use utfconvert function 2006-01-31 02:15:21 +00:00
stronk7
c6fd7d80f3 Minor modifications. 2006-01-31 00:14:48 +00:00
stronk7
d70c9bda55 Finished the install_component class. It allows do do all the work
just with 2 calls. See embebed documentation about usage.

Next step, add some error strings and implement it both in pear and
environmental actions.
2006-01-30 23:19:13 +00:00
stronk7
d359b5ac14 first cut of the component download and install
library. Will be used for 1.6 langs, pear and
enviromental stuff install from moodle.org.

Not working yet!
2006-01-30 15:02:20 +00:00
moodler
fe9f19ef1e Added a fix to help user profile pictures under safe mode (from Mahmoud H. Hasan)
PHP manual mentions it too.
2006-01-28 14:15:56 +00:00
moodler
7d94fa91d5 Upgraded ADOdb to 4.71
http://sourceforge.net/project/shownotes.php?release_id=387862&group_id=42718
2006-01-28 06:04:42 +00:00
moodler
bdc003eb05 bug fixings 2006-01-27 04:39:53 +00:00
toyomoyo
a597f8a86a adding function print_progress from upgradeforumread 2006-01-27 02:54:51 +00:00
julmis
1ab4713da2 Merging from MOODLE_15_STABLE
- adding fix for Bug 4562. Fix posted by sgarcia.
2006-01-25 23:47:16 +00:00
moodler
3e42156be5 removed an extra echo statement 2006-01-25 06:23:33 +00:00
moodler
25d0380b6e bug fixing 2006-01-25 05:20:33 +00:00
moodler
0302c52fd2 adding a require_logout() function =) 2006-01-24 06:00:32 +00:00
vyshane
65342c76a3 Fixed syntax error on line 804. 2006-01-24 01:51:13 +00:00
moodler
a789577bf4 Fix Bug #4626 - weblib.php: $course object conversion error in "print_footer " function 2006-01-24 01:40:06 +00:00
stronk7
4d69a487e4 Cleaning of unnecessary 4th fields in the insert_record() function.
See http://moodle.org/bugs/bug.php?op=show&bugid=4583 for more
information.
2006-01-23 16:36:46 +00:00
moodler
0c25b4534e bug fixes 2006-01-23 03:15:45 +00:00
stronk7
d83f837385 Changed harcoded 'admin' to $CFG->admin
Merged from MOODLE_15_STABLE
2006-01-21 00:19:02 +00:00
stronk7
878d309c2b Now results of check_moodle_environment() are
cached, saving us of some work when the script
is called more than once per request (install)

Merged from MOODLE_15_STABLE
2006-01-20 18:52:48 +00:00
moodler
698184d779 more bug fixing 2006-01-20 06:21:42 +00:00
stronk7
00d3a0fd95 Notices out! 2006-01-19 16:21:50 +00:00
stronk7
e3058eb3d4 Now postgresql version is properly checked. 2006-01-19 11:10:26 +00:00
stronk7
e909788dae Now a final box is showed at the end of the report. 2006-01-18 23:06:20 +00:00
stronk7
049c0f4a8a Now we are able to print a pretty table with results
of the whole test.
2006-01-18 19:14:54 +00:00
stronk7
ca9bfcd048 New string available in langconfig.php: oldcharset 2006-01-18 16:06:09 +00:00
mjollnir_
824f1c40fc cache category_parent_visible so as to avoid doing millions of database queries 2006-01-17 23:46:42 +00:00
mjollnir_
185cfb095b Reworked the My Moodle course overview API to be MUCH more efficient.
Previously we were literally doing hundreds of database queries, now it's
very much faster.
This makes the API slightly more complicated, but it's definitely worth it!
Each module should implement modname_print_overview, which takes an array of courses
and an array to fill up indexed by [$courseid]['modname'] for the controller to loop through and print.
Each module should LIMIT the number of queries to use, all module instances can be fetched
with the new function get_all_instances_in_courses which is the same as get_all_instances_in_course
but takes an array of courses to fetch the instances for.  This means there is no need to loop
over the courses array and fetch the instances for each course (dramatically cutting down the number of queries!)
2006-01-17 20:49:43 +00:00
moodler
9833289841 Added default values for columns in the MySQL creation script mysql.sql.
Added default values to migrate2utf8.xml, for any varchar and text field types, if the default values for these fields were not defined as '' in the MySQL table creation script.

Committed by vyshane
2006-01-17 07:10:56 +00:00
toyomoyo
ab638383d2 bug fix for 4594 2006-01-17 04:29:33 +00:00
stronk7
f58b518fec After thinking a bit about it, this file is, exactly,
one library, so add it here. The admin/environment.php
will be the interface to handle all this stuff. ;-)
2006-01-16 23:25:14 +00:00
skodak
68913aecd0 ignore set_time_limit() errors 2006-01-16 22:55:17 +00:00
skodak
8914cb828c ignore ini_set() result 2006-01-16 22:23:52 +00:00
skodak
4c8c65ecd5 added byteserving, fixed cookieless mode, changed timeout handling, minor code cleanup 2006-01-16 22:21:41 +00:00
mjollnir_
f332bd025c Added cast to string in choose_from_menu_nested as well as choose_from_menu 2006-01-16 21:50:57 +00:00
stronk7
ff4651e6e5 Part of Bug 4583. Now insert_record() always unset the primary key
(instead of the first, non-cached, invocation). Also, modified one
condition with no sense now. Needs testing (specially from PostgreSQL,
although it should work and the bug would be solved.
(http://moodle.org/bugs/bug.php?op=show&bugid=4583)
2006-01-16 10:36:59 +00:00
mjollnir_
bd905b4568 Backing out type checking in choose_from_menu and choose_from_menu nested. Perhaps will add casting to string on both sides later 2006-01-16 09:05:23 +00:00
moodler
5d7a2722d5 more bugs 2006-01-16 07:57:56 +00:00
martinlanghoff
18147bc254 lib/datalib.php - fixed missing return and global $CFG
Tidyup after merging Tim Hunt's patches.
2006-01-16 06:35:58 +00:00
martinlanghoff
d53c5dfc63 lib/datalib.php: Fixed a problem that get_recordset() does not return results
Author: Patrick Li <patrick@catalyst.net.nz>
2006-01-16 06:26:47 +00:00
martinlanghoff
eb856e3b4d lib/datalib.php [5/6] Make other methods that obtain a record set use the
appropriate get_recordset* function, instead of duplicating
code.

Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:24:53 +00:00
martinlanghoff
26c0a58702 lib/datalib.php [5/6] Make the get_records*_menu family of functions use the
get_recordset* functions, instead of duplicating code.


Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:23:17 +00:00
martinlanghoff
9b277c0d80 lib/datalib.php [4/6] Make the get_records* family of functions use the
get_recordset* functions, instead of duplicating code.

Note: I've replaced the @deprecated tokens in phpdoc with an indication
that the get_records* calls are valid as convenience calls. The
get_recordset*() calls should be considered for performance and memory
footprint, but are not mandatory.

In a sense, deprecating get_records*() would mean a commitment to remove
them within X number of versions, which I am not sure we will do. Now,
if phpdoc has a @discouraged token, I'd like to hear about it ;-)

Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:17:38 +00:00
martinlanghoff
1184063286 lib/datalib.php [3/6] Move all instances of code that processes the
(..., $field1, $value1, $field2, $value2, $field3, $value3, ...)
part of argument lists to a common method, and improve the
comments relating to those arguments on calling methods.

Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:07:57 +00:00
martinlanghoff
0934b9def8 lib/datalib.php [2/6] Version of Martin Langhoff's patch to add the get_recordset_*
family of methods.

Author: Martin Langhoff <martin@catalyst.net.nz> && Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:05:43 +00:00
martinlanghoff
d4c54cd6a6 lib/datalib.php [1/6] Remove unreachable code (break statements after returns in switches).
Author: Tim Hunt <T.J.Hunt@open.ac.uk>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
2006-01-16 06:04:09 +00:00
moodler
e746e4dd99 added missing semicolon in &nbsp (bug#4592) 2006-01-16 04:29:41 +00:00
martinlanghoff
2037106308 Merged from MOODLE_15_STABLE - readfile_chunked() - do not timeout on slow (dial up) clients, and flush buffers explicitly to avoid hogging memory when ob is on 2006-01-16 04:02:28 +00:00
martinlanghoff
061fb2e7c3 datalib: teach moodle to pull an array from a column
the new get_fieldset_sql() gets around the nastiness in get_recordset()
that treats the first column as the unique key of the recordset. You can
now request a column from a table, or a set of values as a set of 1 field
records.
2006-01-16 03:07:23 +00:00
martinlanghoff
99a14a54e8 setnew_password_and_mail() gives users a tmp passwords and emails a notice. 2006-01-16 02:51:02 +00:00
defacer
ce432524ee Changing the naming scheme for auto-generated HTML ids here; due to copy/paste
this might have resulted in non-unique ids in the same page.

REALLY small print issue... isn't it unbelievable what you might find when
digging into CVS for a completely unrelated reason? :-)
2006-01-15 02:32:04 +00:00