Commit graph

3353 commits

Author SHA1 Message Date
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
moodler
91ea292e65 Changed the login info string when a user is using 'switch roles' 2006-09-21 14:42:45 +00:00
moodler
0cef8a37fa Changed logic slightly in switchrole_form 2006-09-21 14:04:32 +00:00
moodler
3a52e764e4 New "Switch Role" functionality to replace the old "Student view".
It's not well-tested yet and probably doesn't quite work.  I will keep debugging this tonight from home.
2006-09-21 09:16:41 +00:00
toyomoyo
01e52ac70a changes to backups (where the roles info are stored) 2006-09-21 09:09:16 +00:00
skodak
2ce38b70d8 capability related changes in new admin tree 2006-09-21 08:18:14 +00:00
skodak
db51ddc52e old admin configuration cleanup - MDL-6595 MDL-6449 MDL-6447 2006-09-21 08:05:50 +00:00
stronk7
0ce61c841f Force ANSI NULLs under mssql. It's not critical to work
but it avoids some problems when changing nullability
of fields in the future.
2006-09-21 07:44:56 +00:00
moodler
20dd4cf5a1 Added new capability to switch roles (replaces old student view) 2006-09-21 07:44:53 +00:00
moodler
1c1e7af4e2 FIxed defaults for frontpage format 2006-09-21 07:38:13 +00:00
toyomoyo
4929302769 adding roles support for backups 2006-09-21 06:57:14 +00:00
toyomoyo
e38f38c326 fix for MDL-6571, added get_roles_on_exact_context() for backup 2006-09-21 03:21:33 +00:00
stronk7
db8bd7a66f Now XMLDB installation is enabled! Old mysql.php and postgres7.php can
continue being used as previously until we finish all the required
DDL functions.

Also, this implies that *.sql files aren't needed anymore. Now all we have to do
is to maintain the install.xml files from the editor.
2006-09-20 22:36:21 +00:00
stronk7
8e6a09bd2b Updated comment... :-/ 2006-09-20 22:03:45 +00:00
stronk7
1b25502133 Forcing ADODB_FETCH_ASSOC explicity now for any DB. 2006-09-20 22:00:49 +00:00
skodak
eef868d17d major whitespace cleanup - fixed trailng whitespace in new files and admin area 2006-09-20 21:00:45 +00:00
skodak
daa588aa52 merged changes in moodlelib.php from MOODLE_16_STABLE 2006-09-20 18:40:22 +00:00
skodak
ba4e0b059d fixed warning caused by missing fields in $course; tweaked mime info for firefox when forcing download - it should use default system mime associations which should be safe in case of firefox. 2006-09-20 17:51:59 +00:00
tjhunt
df44078448 Another typo.
A pity, I would love to know what a delect_records function did ;-)
2006-09-20 16:36:40 +00:00
tjhunt
9fd73f0c26 Fixed typo CONTEXT_COUSE -> CONTEXT_COURSE 2006-09-20 16:19:57 +00:00
sam_marshall
027d048574 Update to static JS - 'hitem' hidden fields now optional for lockoptions. 2006-09-20 15:04:57 +00:00
ikawhero
adecf1c475 Adding tables for customisable user profile fields. See MDL-474 2006-09-20 14:17:21 +00:00
martinlanghoff
d7e901c669 dmlib: changed array access to keyed instead of ordinal.
This supports the move to ADODB_FETCH_ASSOC instead of ADODB_FETCH_BOTH.
see:
http://docs.moodle.org/en/XMLDB_Problems#ADOdb_fetch_mode_.28ASSOC.2C_NUM_and_BOTH.29

Author: Luke Hudson <luke@catalyst.net.nz>
2006-09-20 11:26:47 +00:00
toyomoyo
dc5586907d replacing deprecated calls and references to capability calls 2006-09-20 09:00:04 +00:00
vyshane
759ac72de1 Added new function function fetch_context_independent_capabilities(). Modified fetch_context_capabilities() to use the former.
Fixed get_roles_used_in_context() sql query. r.sortorder must be selected if it is to be used in an ORDER BY clause.
2006-09-20 08:30:49 +00:00
tjhunt
1da5a36294 More capability name typos. 2006-09-20 08:01:59 +00:00
skodak
8521d83aff role_context_capabilities should handle current context too and role override simply use parent context 2006-09-20 06:24:55 +00:00
moodler
c4381ef5d2 FIxed a bug where $context had not been defined in enrol_into_course 2006-09-20 02:19:08 +00:00
moodler
b0270f84eb Added unset_config as a companion to set_config 2006-09-20 02:17:27 +00:00
moodler
7f7cacdf4e Made the debugging message a bit less passive 2006-09-20 01:52:49 +00:00
tjhunt
a8a7300acc In debug mode, warn people if they are asking for an unknown capability. 2006-09-19 22:57:17 +00:00
moodler
33f857405b Slight extensions to get_my_courses() API to make it more useful in general 2006-09-19 14:23:43 +00:00
toyomoyo
9ce384ba1e relacing deprecated functions with capability checks 2006-09-19 14:16:40 +00:00
moodler
0dde27bb52 More efficient get_my_courses() 2006-09-19 14:14:32 +00:00
nfreear
57100a9098 Fixes bug MDL-6360 "Resizable image in breadcrumb trail..."
- files block_search_forums.php, calendar/lib.php, lang/en_utf8/access.php, weblib.php, theme/standard/config.php, styles_color.css
2006-09-19 11:36:21 +00:00
toyomoyo
9c37662f22 replacing deprecated funciton calls with capability calls 2006-09-19 09:16:24 +00:00
vyshane
285f94f506 Few small fixes 2006-09-19 08:16:26 +00:00
vyshane
f2269f311d Typos 2006-09-19 08:10:46 +00:00
skodak
45b9781ed4 fixed missing shortname pg upgrade code, sorry 2006-09-19 07:35:48 +00:00
skodak
a6b02b652b RISK_ADMIN replaced with RISK_CONFIG 2006-09-19 07:33:22 +00:00
skodak
b79da3ac68 moodle/course:managemetacourse is now singular 2006-09-19 06:35:52 +00:00
toyomoyo
2d9965e1dc function should be looking up parent contexts too 2006-09-19 02:47:55 +00:00