5774 Commits

Author SHA1 Message Date
poltawski
e8276c1047 Improving phpdocs for when to use format_string()/format_text() based on
wiki comments. It wasn't an entirely clear (e.g. mixup in MDL-11800)

Merged from MOODLE_19_STABLE
2007-12-15 18:42:49 +00:00
skodak
32462b2c10 MDL-12592 do not execute theme_setup() if header already printed; merged from MOODLE_19_STABLE 2007-12-15 16:53:39 +00:00
skodak
b3847656ed MDL-12585 make sure category path, parent and depth are ok before creating contexts; merged from MOODLE_19_STABLE 2007-12-15 15:49:35 +00:00
skodak
3f6ba95bc6 MDL-12570 option to disable lang autodetect from browser; merged from MOODLE_19_STABLE 2007-12-15 13:28:01 +00:00
stronk7
e7a89237de Modify some timezone fields to accept new olson files. MDL-12024
Merged from MOODLE_19_STABLE
2007-12-15 00:49:05 +00:00
skodak
d795bfdbf9 MDL-12221 reworked container autoclosing - error() and notice() do not work everywhere though; notice print header if needed now; new print_footer('empty') for empty footer - removes some hacky </body></html> - merged from MOODLE_19_STABLE 2007-12-14 21:22:38 +00:00
stronk7
e5e7b2a8fe Added the sql_cast_char2int() funtion to provide cross-db
casting from char/text to integer. MDL-12574

Merged from MOODLE_19_STABLE
2007-12-13 18:02:31 +00:00
tjhunt
0a2c84851c MDL-12517 - Move checking code into the user interface layer where it belongs. Merged from MOODLE_19_STABLE. 2007-12-13 14:19:24 +00:00
toyomoyo
56af043f38 MDL-12517, notify when grades entered into gradebook is out of bounds 2007-12-13 07:09:27 +00:00
tjhunt
901e25d481 Improve PHP doc comments. 2007-12-12 19:01:59 +00:00
tjhunt
3d96cba76a Improve PHP doc comments. 2007-12-12 17:10:48 +00:00
toyomoyo
6967ba2846 MDL-12544, hide hidden roles in profile when user has no capability 2007-12-12 07:13:09 +00:00
nfreear
93beeb7254 Fixes MDL-12539 "Help link text for all admin/user filters are broken". 2007-12-11 13:58:39 +00:00
tjhunt
b04ad8649b Take out debugging output in role_assign. It only tells you that something has worked, and everywhere else we use debugging output to warn people they have called an API wrongly. Therefore, this is just confusing now that we trust this bit of roles code. 2007-12-11 10:37:53 +00:00
scyrma
d0b869a00c MDL-12528 - getElementById was misspelled. 2007-12-11 05:00:14 +00:00
martinlanghoff
70dd126e0b MDL-12523 accesslib:cleanup_contexts() - Fix invalid SQL syntax and reserved keywords
cleanup_contexts() was not working on Oracle - mostly due to 2 SQL
syntax problems. So probably marginally working elsewhere.

 - We should not use AS when naming table/subselect aliases - only
   when referring to column aliases in the resultset

 - level is a reserved word - oops! - so back to contextlevel
2007-12-10 21:35:58 +00:00
tjhunt
aaa6ac6f2a MDL-12512 - Gradebook calculations are broken. This was caused by == FALSE that should have been === FALSE deep in the 3rd pary maths lib. Merged from MOODLE_19_STABLE. 2007-12-10 17:37:14 +00:00
tjhunt
0b94215637 Do not suppress errors from developers! it makes debugging a nightmare! 2007-12-10 16:53:17 +00:00
stronk7
0404b472cf Document MDL-12378
Merged from MOODLE_19_STABLE
2007-12-09 18:22:24 +00:00
stronk7
dbe3f5b520 Prevent XHTML breackage. MDL-12378
Merged from MOODLE_19_STABLE
2007-12-09 18:20:55 +00:00
stronk7
5383636fbb Changing wrong UNSIGNEDs to nulls in tests. MDL-11662
Merged from MOODLE_19_STABLE
2007-12-08 18:54:24 +00:00
stronk7
4a5d0a39b1 Changing XMLDB_UNSIGNED to nulls for non-numeric types. MDL-11662
Merged from MOODLE_19_STABLE
2007-12-08 18:44:12 +00:00
stronk7
051b9588d1 XMLDB_UNSIGNED only applicable to number types. MDL-11662
Merged from MOODLE_19_STABLE
2007-12-08 18:20:15 +00:00
sam_marshall
1be64f767b MDL-11845 Last checkin accidentally omitted a require_once (hopefully finally done now!!) 2007-12-07 11:11:44 +00:00
sam_marshall
ae8c48f726 MDL-11845 Updated the three file downloads from Snoopy to download_file_content (which I didn't know about before :) 2007-12-07 10:24:00 +00:00
nicolasconnault
0c87b5aac0 MDL-11835 Changing default aggregateonlygraded back to true, but set this value to false for upgraded course categories. Also set grade display type to percentage for upgraded items, since this is the default setting in 1.8. Site default is Real display type. 2007-12-07 09:14:51 +00:00
fmarier
2bba926db0 weblib: Fix typo in print_table() which was causing invalid <th> tag
MDL-11506
2007-12-07 05:00:22 +00:00
sam_marshall
3e93ea86c0 MDL-11845 Support for config proxy options when downloading language packs (& other components), timezone file 2007-12-06 18:12:42 +00:00
nicolasconnault
6e17e472ee MDL-11835 Changed upgradelib so that course category aggregation and grade category default aggregation are simple weighted mean 2007-12-06 14:20:37 +00:00
tjhunt
0d7c3b78cd MDL-12448 - Fix page_generic_activity->init_full() to use get_coursemodule_from_instance(). Merged from MOODLE_19_STABLE. 2007-12-06 11:38:53 +00:00
toyomoyo
176058849a MDL-12451, in get_users_by_capability(), defaultroleid bit fixes 2007-12-06 03:57:05 +00:00
tjhunt
36c6f4f59e MDL-12452 - not a fix I fear, just clarifying the comments about how this method is broken. 2007-12-05 17:25:25 +00:00
tjhunt
628f99616d MDL-12438 - followup - fix typos. Thanks to Dan Poltawski. 2007-12-05 16:50:23 +00:00
toyomoyo
086df9283f MDL-12437, sorting by names adds teacher to gradebook list 2007-12-05 01:13:29 +00:00
tjhunt
ade79a4768 MDL-12438 - Print a develoer debug message if you call get_records with a non-unique first column. Merged from MOODLE_19_STABLE. 2007-12-04 17:29:47 +00:00
sam_marshall
d5fe85d5cc MDL-12431 Added ability for filters to contain lang files 2007-12-04 11:47:28 +00:00
nicolasconnault
6073a598a7 MDL-12389 Removed the selectallornone element in favour of a more generic submitlink element. The checkbox controller is now added to a form using moodleform::add_checkbox_controller. 2007-12-04 10:35:25 +00:00
martinlanghoff
1d854cec5a datalib: get_logs_user*() - fix invalid SQL - MDL-12426
Oracle does not accept column labels in the GROUP BY section -
get_logs_usercourse() and get_logs_userday() were computing the
day/hours column and using it in the GROUP BY. The compatible fix
is to reproduce the same computation in the GROUP BY section.

Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>.
2007-12-04 06:26:10 +00:00
martinlanghoff
2ff0fb1205 accesslib: build_context_path() remove $temptable for Oracle too
The removal of $temptable was incomplete - and so build_context_path()
was broken on Oracle. MDL-11347
2007-12-04 06:25:25 +00:00
toyomoyo
0c07a1c458 MDL-12399, shorten_text() truncates all closing tags 2007-12-04 05:10:12 +00:00
fmarier
69885093bf ddllib: Mark table_column() as deprecated
Signed-off-by: Eloy Lafuente
2007-12-03 23:20:03 +00:00
stronk7
1e5352cb61 Adding some outer spaces to returned SQL to avoid wrong
sentences caused by concatenation.

Merged from MOODLE_19_STABLE
2007-12-03 20:44:03 +00:00
stronk7
51adead13f Adding two new functions: sql_isempty() and sql_isnotempty() to perform
SQL comparisons to empties in a cross-db way. General solution for
problems like MDL-12084

Merged from MOODLE_19_STABLE
2007-12-03 20:30:41 +00:00
nicolasconnault
8f9607dbc8 MDL-12389 Added a new getElementsByClassName function in lib/javascript.php, added the selectallornone formslib element, modified the advcheckbox element to support the group variable, and implemented the new element in grade_export_form 2007-12-03 20:13:01 +00:00
nfreear
166db28057 Fixes bug MDL-12416, Help links - img ALT text should contain phrase "new window" to match link TITLE. 2007-12-03 16:41:36 +00:00
toyomoyo
93c61c18cf MDL-10915, additional setting for emoticons 2007-12-03 06:27:21 +00:00
toyomoyo
8f2469611f wrap search/replace in a function so that it could be used in cron 2007-12-03 04:46:37 +00:00
iarenaza
060518592b Remove accidentally revived files as part of MDL-11099 fix 2007-12-02 16:14:13 +00:00
scyrma
2416a6f7c2 Code style corrections. 2007-11-30 03:09:59 +00:00
skodak
0b5a80a1a5 MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE 2007-11-29 14:43:04 +00:00