stronk7 [Fri, 29 Feb 2008 15:14:30 +0000 (15:14 +0000)]
Deletin the grader->get_numusers() method. I was doing some not
needed checks (I guess copied from load_users(), where they have
sense). Fallback to grade_report->get_numusers(), that looks ok. MDL-13403
tjhunt [Thu, 28 Feb 2008 22:44:12 +0000 (22:44 +0000)]
MDL-12776 - Quiz email notification and separate groups mode - student not in group -> all teachers get email\r\rI have changed it so that if the quiz is set to groups mode, and if the student is not in a group, then only teachers with 'accessallgroups' get emailed.
tjhunt [Thu, 28 Feb 2008 21:43:50 +0000 (21:43 +0000)]
MDL-12815 - Quiz uses inconsistent class attribute for the paging bar.\r\rI have added the standard .paging class, but I have left the old class there too, so as not to break existing themes.
tjhunt [Thu, 28 Feb 2008 12:53:02 +0000 (12:53 +0000)]
MDL-13189 - replace the $QTYPE_MENU global with a function call, so that we can set up the language strings later, after $COURSE is initialised. This ensures that the quesion names appear in the right language.
scyrma [Thu, 28 Feb 2008 03:12:52 +0000 (03:12 +0000)]
MDL-11242 - Setting the width back to it's 1.8 value. This makes it a bit too large for the message window, but is necessary for IE7/Vista (merge
from 1.9)
nicolasconnault [Wed, 27 Feb 2008 12:48:20 +0000 (12:48 +0000)]
MDL-13674 Course category fullname field is no longer required. If set to empty it will be recorded in the DB as ?, and the course name will be used instead wherever the category name is displayed. Merging from MOODLE_19_STABLE.
urs_hunkler [Wed, 27 Feb 2008 10:34:51 +0000 (10:34 +0000)]
merged from 1.9 :: MDL-13648 :: several enhancements/changes due to the discussion in the Moodle tracker:
_ changed the README - Custom corners is now experimental
_ styles_colors from standard included - all the usabilty work using colors will automatically show up in Custom corners too
_ optimized the JavaScript which adds the necessary layouttable classes to the body tag
_ Chameleon engine removed - developers throw in CSS at the end without caring if the Chameleon engine can handle it
martinlanghoff [Wed, 27 Feb 2008 02:56:48 +0000 (02:56 +0000)]
MDL-90 authenticate_user_login() - don't accidentally return a bogus $user
While I don't quite understand why we need that $user->id=0, at
_least_ make double sure we don't return it! Callers assume
that if we return an object===success and a user acct that just does
not exist will return an dummy object.
martinlanghoff [Wed, 27 Feb 2008 02:55:36 +0000 (02:55 +0000)]
MDL-90 lib/setup: extend include_path to cover the PEAR libs we distribute
Almost no cost - most of our require/include calls are with
absolute paths, which will skip the include_path. The few
that are not absolute are usually to include PEAR libs -
so this is appropriate and avoids having to change the
PEAR libs themselves when they make references to other
PEAR libs.
Using the include path does mean that OS-installed PEAR libs
will override ours. There's a small compat risk here - if you
need to ensure a particular version, use an absolute path.
martinlanghoff [Wed, 27 Feb 2008 02:51:49 +0000 (02:51 +0000)]
MDL-90 Introducing MOODLE_SANE_INPUT and MOODLE_SANE_OUTPUT to setup.php
These two constants indicate that the Moodle core should not mangle
input (magic quotes of any kind verboten!) and should not spit odd stuff
in the output (displaydebug verboten!). Both are needed for WebDAV
support.
MOODLE_SANE_INPUT is tricky - it means that the codepaths _must_ use
$db->qstr() (or addslashes() - but that has its own problems).
skodak [Tue, 26 Feb 2008 21:36:48 +0000 (21:36 +0000)]
MDL-10990 5) eliminated reply related cap queries for guests and not-logged-in users because they can not post anyway, removed reply link for guests from news posts, they did not see Add discussion link already; merged from MOODLE_19_STABLE