22 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
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
9cb14dbd9e proper initialisation of $focus SC#257; merged from MOODLE_16_STABLE 2006-05-20 18:19:27 +00:00
skodak
0ae88327f2 fixed whitespace only 2006-02-12 19:46:30 +00:00
skodak
9b9ae915d7 scales.php fixed page parameters and removed isset_param(); scale parameter now named scaleid when listing only 2006-02-12 19:43:17 +00:00
thepurpleblob
96dcfb5621 Replaced require_variable() and optional_variable() with required_param() and
optional_param(). Fixed notice when doing a sort in recent activity.
2005-06-13 19:06:28 +00:00
moodler
1f5334dd0f Some quick formatting fixes 2005-04-15 14:24:46 +00:00
moodler
810393c804 Removed THEME from many course files 2005-01-25 14:03:43 +00:00
stronk7
41f3270dab Typo. Bug 2351.
Merged from MOODLE_14_STABLE
2005-01-08 10:49:38 +00:00
mjollnir_
ed040b1f2d Merged from MOODLE_14_STABLE: Recent course/scale optimisations 2004-11-22 05:22:20 +00:00
stronk7
92604dbcf8 course/scales.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 18:33:44 +00:00
moodler
bcb5605ee1 Minor change for XHTML compatibility 2004-10-08 13:39:46 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
stronk7
b66dcd725d Fixed bug avoiding teachers create new scales...
NEED BUG 1425 SOLVED!!
(http://moodle.org/bugs/bug.php?op=show&bugid=1425)
2004-05-18 17:08:41 +00:00
stronk7
9c00263349 Completely rewritten scales interface. It allows to delete unused
scales, edit and move them between custom and standar (only admins).
Editing teacher can modify only custom scales.
Bug 1223.
(http://moodle.org/bugs/bug.php?op=show&bugid=1223)
Please, test and decide...
2004-05-17 22:19:23 +00:00
moodler
4909e17632 These changes implement some better controls for controlling uploads.
1) There is a new site-wide configuration variable called maxbytes,
   which provides an upper filesize limit for all (student) uploads.

2) There is a new course-level variable called maxbytes, which further
   limits uploads within a course.

3) There is a new maxbytes field for forums, which further restricts
   the size allowed in a particular forum.  There is also a new config
   variable in the module configuration to specify a default size
   to use when defining a new forum.

4) Assignments already had a limit, but this is now aware of the other
   limits, and like forums there is now a settable default value.

5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable
   in the language packs.
2003-10-06 18:02:35 +00:00
moodler
905be758d3 Don't need a red notification if it isn't bad 2003-08-17 06:47:39 +00:00
moodler
d4f253848c Rearranged help button 2003-08-17 02:34:42 +00:00
moodler
a3ba14700e Help buttons fixed 2003-08-17 02:32:24 +00:00
moodler
d99eab3c9f Allow teacher editors to modify scales 2003-08-16 05:44:40 +00:00
moodler
a57319b1f3 New scales editing page 2003-08-15 14:03:25 +00:00