Commit graph

3521 commits

Author SHA1 Message Date
stronk7
d3b93bd26a Add skip parameters to one getFieldSQL call requiring them 2006-09-24 15:26:49 +00:00
stronk7
ff936e2c2d Finally PostgreSQL seems to be working now.... I've tried to do
it as clever as possible detecting when column specs change in
order to reduce the number of temp-update-drop-rename operations
2006-09-24 15:25:49 +00:00
vyshane
3f8a38343b Removed isteacher from function print_recent_activity_note() 2006-09-24 14:35:48 +00:00
moodler
11ac79ff0e Extend the require_login in require_capability a bit 2006-09-24 13:15:13 +00:00
skodak
6df3c7df7a user upload cap renamed to moodle/site:uploadusers 2006-09-24 12:54:53 +00:00
skodak
cc891abe88 uploading of users has new capability 'moodle/user:upload' now also with admin block integrated 2006-09-24 12:31:49 +00:00
moodler
df206ef87f Corrected accidental language-changing because of lang in POST 2006-09-24 12:07:44 +00:00
skodak
38d2d43b01 roles fixed in user browsing page; admin section now accepts array of capabilities for external and settings pages 2006-09-24 11:55:11 +00:00
moodler
f365252121 Handle site-level block names in capability settings too 2006-09-24 11:32:11 +00:00
moodler
2c8766dff2 Function stub, as suggestion towards MDL-6678 2006-09-24 11:11:40 +00:00
stronk7
f46e2c8cbc Changed one LIMIT to a cross-db WHERE clause 2006-09-24 09:59:25 +00:00
stronk7
b0ec41af8a Prevent Unique Keys generation. Instead use unique indexes at DB level.
With this, all we'll have are PRIMARY KEYS + INDEXES, that are pretty
well supported by ADODB MetaXXX functions.
Both Unique and Foreign Keys will be used once ADODB support them and
the relational mode was enforced.
2006-09-24 09:38:56 +00:00
stronk7
70a8ac6666 Given one xmldb_field, finds its name in DB 2006-09-24 08:26:24 +00:00
skodak
25d8040ec5 added trustbitmask column to user table 2006-09-24 07:32:49 +00:00
mjollnir_
931ab7be83 fixes to activity stats processing for dailies 2006-09-24 07:15:22 +00:00
mjollnir_
96edb010da more work on stats reports ... 2006-09-24 07:13:33 +00:00
moodler
975211bb0a Removed the "then" string, no need for it 2006-09-24 06:47:53 +00:00
moodler
c7731ab5e2 Fixed notice() so that you can pass a course if you want 2006-09-24 06:21:15 +00:00
mjollnir_
11887b6d5e more fixing on reports 2006-09-24 03:15:52 +00:00
stronk7
19c8321e07 Now Oracle supports the first part of alter table alter column statements 2006-09-24 00:02:34 +00:00
stronk7
0e9e0b3bb3 adding support for alter columns
(not finished yet)
2006-09-23 21:24:51 +00:00
stronk7
f8c485b071 mysql alter table alter column is "modify column" 2006-09-23 21:23:05 +00:00
stronk7
c282203d84 mssql doesn't support default clause in alter table alter column 2006-09-23 21:22:02 +00:00
moodler
3e1e2b6968 Putting the files back to plain JS files 2006-09-23 15:11:37 +00:00
moodler
354e11303e Just tidying up the code 2006-09-23 14:34:59 +00:00
moodler
9bb7417805 Further centralising of course AJAX and cleanup of code formatting, names etc 2006-09-23 14:03:48 +00:00
moodler
748390cd30 be a bit more forgiving of lang parameter 2006-09-23 13:14:25 +00:00
skodak
ece4945bd2 role sortorder column now has unique index; new function get_all_roles() that returns all roles with correct sort 2006-09-23 12:51:00 +00:00
moodler
65b0c132ed When getting lists of roles, put role names through format_string
(ie for multilang filter)
2006-09-23 12:46:53 +00:00
mjollnir_
67f3be726e fixes to the stats processing. Credit: Geoff Cant <geoff@catalyst.net.nz> (sql ninja) 2006-09-23 12:42:35 +00:00
mjollnir_
0dd5bf422b more work on stats - reports this time 2006-09-23 12:08:46 +00:00
skodak
8420bee94e towards unique role sortorder - fixes for create_role() and new delete_role() 2006-09-23 10:43:24 +00:00
mjollnir_
09cf1c9b55 follow correct naming convention when fetching legacy teacher role 2006-09-23 09:47:11 +00:00
skodak
7eb0b60a1f debugging and error reporting level fixes and improvements MDL-6671 2006-09-23 09:38:39 +00:00
mjollnir_
88d7e6218e fixing typo in stats upgrade I just made 2006-09-23 09:02:37 +00:00
mjollnir_
0f259f63d9 lots of fixes to stats, more to come 2006-09-23 08:52:12 +00:00
moodler
9991d157ea Further fixes for MDL-6601 ... that should be complete now. 2006-09-23 06:10:48 +00:00
skodak
16e2e2f394 fixed error in fetch_context_capabilities() when no local capabilities defined in context 2006-09-22 21:31:19 +00:00
stronk7
2a2905fb6f Now using ADOdb standard transactions. Some day, we should switch to
Smart Transactions (http://phplens.com/adodb/tutorial.smart.transactions.html)
as they autodetect errors and are nestable and easier to write
2006-09-22 20:05:44 +00:00
skodak
a17c57b5e3 Partially reversed patch for http://tracker.moodle.org/browse/MDL-5136, caching of filtered uploaded html files is disabled now MDL-5136 , Eloy is changing the column type in cache_text back to TEXT. 2006-09-22 18:08:53 +00:00
moodler
eaa79489a8 First pass at a fix for MDL-6601 (delete contexts when deleting course) 2006-09-22 17:49:45 +00:00
stronk7
0700134df5 Detect Oracle Database Encoding in order to set CFG->unicodedb properly 2006-09-22 17:23:09 +00:00
stronk7
4feeadeb59 Minor fix to be able to drop tables without prefix properly (adodb_log) 2006-09-22 16:16:48 +00:00
moodler
96fc0072b4 Removed some old debugging 2006-09-22 15:54:03 +00:00
stronk7
0e1412cea5 Now cache_text->formattedtext is a longtext again.
(both PG and the UTF8 migration script were
working with it as text, so impact should be minimal)
2006-09-22 15:43:42 +00:00
moodler
e2183037b3 Fixed a typo for enrol_into_course(), thanks Ethem 2006-09-22 13:16:32 +00:00
mjollnir_
0e3404aabd fixing stats_get_course_users. my brain hurts 2006-09-22 11:34:25 +00:00
dwoolhead
12490fc2b3 Prevent 'Warning: Invalid argument supplied for foreach() in ...' for get_courses_page function when there are no courses in the required category. 2006-09-22 11:15:10 +00:00
sam_marshall
ecfdc901fc Ooops. The following-HTTP-standard absolute-path redirect thing didn't work with URLs that begin / (i.e. it couldn't redirect to /moodle/whatever although it was fine redirecting to http://thing/moodle or to plain old whatever/something.) Fixed. 2006-09-22 10:48:37 +00:00
mjollnir_
f5aa20162c added missing indexes in stats upgrade, fixed discrepency between stattype enrolment or enrolments 2006-09-22 10:43:04 +00:00