189 Commits

Author SHA1 Message Date
skodak
bdeae2b9b8 Comments in data print the "by" and then the date but no username MDL-7235; merged from MOODLE_17_STABLE 2006-10-27 07:50:28 +00:00
moodler
f274fe073c Merged AS keyword fixes from stable MDL-7207 2006-10-25 09:04:25 +00:00
moodler
3d81c41e2e Merged fixes for AS keywords MDL-7207 2006-10-25 08:51:32 +00:00
moodler
8303eb8447 Fixes related to presets and MDL-6755.
The original code was shocking once I started reviewing it, and even
after heavy editing I'm still not happy with it, but at least it works
more like it was supposed to.

Needs more cleaning up to make it clearer and probably safer.

Also, presets can now contain langage packs and they'll be used.
The image gallery is an example.
2006-10-02 17:24:54 +00:00
martinlanghoff
a8f4522dfa data, forum, glossary: use sql_ilike() for a portable LIKE operator 2006-09-26 05:08:18 +00:00
vyshane
57244db359 Removed the following module configurations (converted to use roles):
participants, assesspublic and ratings. Changed assessed field to only use 1 (ratings on) or 0 (off).
2006-09-24 13:58:54 +00:00
vyshane
741c4d0b04 Upgrade to roles code for data module. 2006-09-20 17:46:20 +00:00
vyshane
7f2586640e Upgrade to roles code, as well as restoring from 1.6 on a 1.7 install code. 2006-09-20 16:57:01 +00:00
vyshane
24bf6cc196 Replaced isteacher() in fullname() call. 2006-09-18 02:28:57 +00:00
toyomoyo
81e956b964 added some capabilities 2006-08-30 08:43:17 +00:00
moodler
901dd2fb4c Merged new "Database preset" support from Tom Flannaghan.
Still needs some tidy-up work but it's working.
2006-08-15 08:42:06 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak
f262874bbe Bug #5909 - Fix use of user_group() because it returns arrays now - part 1; merged from MOODLE_16_STABLE 2006-07-03 21:11:17 +00:00
skodak
002ccfc7a0 Bug #5678 - Question marks, single quotes in field name cause trouble - cleaning hack ported from clean_filename(); merged from MOODLE_16_STABLE 2006-06-06 10:17:18 +00:00
vyshane
f24eb26139 Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template
adds HTML.
2006-06-02 04:29:11 +00:00
stronk7
cf0403002e Solving one SQL error in data_get_participants()
plus some improved readability.

Merged from MOODLE_16_STABLE
2006-05-23 22:33:01 +00:00
skodak
4bb6c2563b fixed broken SQL that was throwing errors in backup; merged from MOODLE_16_STABLE 2006-05-23 18:15:52 +00:00
moodler
3f9672d37c FIxes for bug 5197 2006-04-15 02:41:27 +00:00
moodler
edaa546ad5 Don't clean final HTML template output, the input should be sanitised. 2006-04-11 13:00:13 +00:00
moodler
7ebb0d488f Guests should not see comment boxes 2006-04-11 12:32:23 +00:00
moodler
63701c7802 FIxed activity reporting for database activities 2006-04-07 07:02:53 +00:00
moodler
236d839ff1 Fixed some pretty major HTML errors :-) bug 5089 2006-04-05 08:19:09 +00:00
moodler
53dc0dfb6a Fixed a string name 2006-04-05 01:40:24 +00:00
moodler
64452eb438 Various fixes that have accumulated 2006-04-05 01:38:06 +00:00
moodler
52373fe74d Fixes for comments 2006-03-29 17:36:20 +00:00
moodler
3d45b8e557 Bunch of fixes including:
- separate browse / detail tabs
   - cleaner logic
   - proper sorting in all scenrios
   - settings stored in the sessions
   - better cleaner URLs
2006-03-29 08:49:28 +00:00
moodler
8179046dd5 Sort the sort menu 2006-03-27 07:24:26 +00:00
vyshane
b395a1e44a Fix for Bug #4978 - Every time I add one field in one DB activity...
Added AS df in SQL query in data_fieldname_exists(). Reformatted the strings
to use single quotes when quoting in SQL. These changes might solve PostgreSQL
problems.
2006-03-27 06:19:34 +00:00
vyshane
9e5537eb3f Replaced <br /> with <hr /> for default list template. 2006-03-27 04:02:48 +00:00
moodler
dbdfc3dbab Little tidyings, I should be in bed watching Scrubs! 2006-03-26 16:19:57 +00:00
moodler
c8505cacd5 Better looking form for preferences and more accessible 2006-03-26 15:54:41 +00:00
moodler
33819735aa More tidying up 2006-03-26 05:36:34 +00:00
moodler
75c42c876f Properly fixed page flow for approvals and deletions 2006-03-26 05:22:16 +00:00
moodler
473dd2888b Various little fixes. 2006-03-26 05:03:10 +00:00
moodler
a44e70811a Update the passed-in data object when generating new templates 2006-03-25 14:57:36 +00:00
moodler
ec865e2d74 Fixes for fields display 2006-03-25 14:00:54 +00:00
moodler
36a9cc4caf Cleaned up approval script (more security ;-)) 2006-03-24 14:48:54 +00:00
vyshane
faf5ec4fa5 Bug fixes and changes to URL field. 2006-03-24 14:34:00 +00:00
moodler
5bac6d10e3 Renamed fields.php to field.php 2006-03-24 02:44:05 +00:00
vyshane
f41cadeba7 Fix for Bug #4969. Renamed variable $mode to $template. 2006-03-24 02:09:15 +00:00
moodler
d118d06afc Various tidy-ups 2006-03-23 10:01:21 +00:00
vyshane
fd96d5e2ec Fixed bug data_print_template() from /mod/data/lib.php. Extra function
argument removed.
2006-03-23 08:34:22 +00:00
vyshane
3a5a7928ea Fixed extra function argument in call for display_add_field() from add.php. 2006-03-23 06:20:48 +00:00
vyshane
8921fdb762 Fixed typo in function define_field() 2006-03-23 03:48:58 +00:00
moodler
a835f1c343 Removed some debugging 2006-03-22 14:55:49 +00:00
moodler
f0497d6ff0 Various cleanups 2006-03-22 14:31:32 +00:00
moodler
ed69c72326 Fixes 2006-03-22 08:32:54 +00:00
moodler
0997e51afe Lots and lots and lots of cleanup for the data module code, mostly
to do with how the field classes worked.  Now it should be even easier
for developers.

No changes for users.  :-P

The changes are not well tested yet!
2006-03-22 08:07:26 +00:00