Commit Graph

478 Commits

Author SHA1 Message Date
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
moodler 3515ae35e2 Just spacings 2006-03-10 09:08:59 +00:00
vyshane 4c03f9209d Added functions data_get_view_actions() and data_get_post_actions() for
participation reports.
2006-03-09 06:26:42 +00:00
toyomoyo 3c1acb61bb printing user picture for comments 2006-03-01 06:51:06 +00:00
moodler 735a795229 A few small changes for Vy to continue working on (logs, mostly) 2006-02-27 04:13:03 +00:00
toyomoyo 2232755c93 added time created and modified for comments 2006-02-27 02:13:48 +00:00
toyomoyo f841494c62 see changes for admin/utfdbmigrate.php 2006-02-24 08:20:13 +00:00
toyomoyo c19c05c400 security issues with dangerous template 2006-02-21 07:17:02 +00:00
toyomoyo 5af0b52558 changed data_submitted for secureform; added sesskey 2006-02-21 02:02:24 +00:00
toyomoyo 850d05ce38 . 2006-02-20 06:07:09 +00:00
toyomoyo 310639ff8c keep comments to the left for IE 2006-02-20 05:50:45 +00:00
toyomoyo bbf0379ca1 fixed navigation after deleting or editting data comment 2006-02-20 05:37:15 +00:00