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
mjollnir_
1282edc826
fixing up the stats table enums
2006-09-22 10:18:33 +00:00
stronk7
d4b86c90dc
Fixed bug about all chars being created with length 255. Penny found this!
2006-09-22 10:15:51 +00:00
stronk7
373dc4406b
Killing some not needed references
2006-09-22 09:54:02 +00:00
moodler
cc7c0592e4
Fixes for get_users_longtimenosee
2006-09-22 09:49:26 +00:00
mjollnir_
504e6fd41f
proper install.xml schema for new stats tables
2006-09-22 08:58:40 +00:00
moodler
aad2ba95d1
Upgrading table to rename the context->aggregatelevel field which was
...
really bugging me. Code should be a little bit more readable now.
Apologies to those with non-core code already using this field.
2006-09-22 06:19:32 +00:00
mjollnir_
20c59467a5
schema files for stats changes (install.xml still to come). Credit: Nigel McNie <nigel@catalyst.net.nz>
2006-09-22 06:05:07 +00:00
moodler
82396e5b1f
Improved error messages for role_assign to be more helpful
2006-09-22 05:23:59 +00:00
moodler
9d829c681d
Removing some notices
2006-09-22 05:17:57 +00:00
moodler
6ed4afb351
Merged support for personal dictionaries in spellchecker
2006-09-22 04:38:32 +00:00
moodler
e84ea106f9
function_names() might not like the egg
2006-09-22 03:49:49 +00:00
mjollnir_
29bbc6e730
As well as a credit to Nigel for the stats schema upgrade and data migration, the previous commit here should have had a HUGE credit to Geoff Cant <geoff@catalyst.net.nz> for NINJA SQL
2006-09-22 03:15:52 +00:00
mjollnir_
e5d83d6fc1
stats rework: 1. upgrade schema and move data to new schema. (credit: Nigel McNie <nigel@catalyst.net.nz>). 2. Stats processing uses new schema. THIS NEEDS TESTING ON MYSQL. Still to do: schema files (install.xml,*.sql still to be committed), reports to use new schema.
2006-09-22 02:54:21 +00:00
moodler
2eb662d261
A real easter egg ;-)
2006-09-22 02:28:13 +00:00
moodler
35cf8b7938
Some easter eggs :-)
2006-09-22 02:11:00 +00:00
toyomoyo
5b5781f4f5
some new functions to help backuo
2006-09-22 01:46:45 +00:00
moodler
988ad08450
Use role sortorder when getting role lists
2006-09-22 01:21:01 +00:00
skodak
b5959f3071
partial rewrite of role manage script, improved notice_yesno(), other minor fixes and changes; I will work on assign and overide tomorrow ;-)
2006-09-21 22:34:45 +00:00
cap2501
e78a3505c5
MDL-6544
...
resolved issue by passing strings into new main.portal.strings for delocalization.
2006-09-21 18:38:54 +00:00
stronk7
94e65cc36c
Now all the insert_record() and update_record() calls under
...
Oracle DB use the oracle_dirty_hack() function to transform
empty strings into something different ' ' in order to avoid
the problems with the empty=NULL stupid norm of Oracle.
With this change, Oracle installation works completely.
Now we need to implement everywhere the opposite hack: transforming
all those ' ' (1 whitespace) back to the '' (empty string). Working
on it now.
2006-09-21 18:30:50 +00:00
stronk7
85f101fa26
SQL ANDs mus be, always, "AND" :-P
2006-09-21 17:18:56 +00:00
moodler
669d3ecd7c
Some fixes to move Javascript files to PHP script, so that we can
...
tweak the contents better.
This was supposed to fix MDL-6544 but it didn't work. Checking it in
because it will help a fix later.
2006-09-21 17:17:00 +00:00
stronk7
d7d05cf2f3
SQL ORs must be, always, "OR"
2006-09-21 17:09:28 +00:00
stronk7
7f5f956cf5
Allow to specify NULL clauses for some generators, mainly because
...
some mssql drivers use to create everything as NOT NULL by default.
2006-09-21 17:04:28 +00:00
moodler
861fdcaa28
Changing defaults for role assigning (teachers, coursecreators allowed)
2006-09-21 16:02:39 +00:00
moodler
2d07587b4c
Improvements to switchroles
...
1) You can have separate switchroles active in every course
2) Admins get a better view (doanything is supressed when switchroles active)
2006-09-21 15:58:59 +00:00
sam_marshall
fd2fff1e24
Changed the redirect() version with no message (that sends a redirect header) so that it sends an absolute URL as per HTTP spec, even if the argument to the function is a relative URL.
2006-09-21 15:13:27 +00:00