danmarsden [Thu, 17 Jan 2008 23:02:57 +0000 (23:02 +0000)]
MDL-12331 prevent hidden role assignments from being shown in the unanswered column of the choice, but still allow them to be shown if they have selected a choice.
poltawski [Tue, 15 Jan 2008 13:48:34 +0000 (13:48 +0000)]
MDL-12990 - clean up message_print_contacts() a lot to:
* Use less DB queries and avoid getting lots of needless data
* Dont do a big php array rearranging loop - database does the work for us instead
* split all the duplicated display code into a single function
mjollnir_ [Tue, 15 Jan 2008 04:20:12 +0000 (04:20 +0000)]
Merged from MOODLE_19_STABLE:
MDL-13000 Adding support for developers to add their own capabilities to local/db/access.php
This relies on a local/ language pack as well for the capability names.
Notes on implementation are in lib/locallib.php
mjollnir_ [Tue, 15 Jan 2008 01:10:34 +0000 (01:10 +0000)]
Merged from MOODLE_19_STABLE:
More on MDL-11561 - fixed up path to local/ settings file to be more consistent,
added documentation in lib/locallib.php on how to create new local admin tree item
poltawski [Mon, 14 Jan 2008 16:59:34 +0000 (16:59 +0000)]
MDL-12990 Ensure that displaying message contact list pictures doesn't take a
dbq per contact. Could do with a rewrite, but this saves us dbqs for now
merged from MOODLE_19_STABLE
jamiesensei [Sat, 12 Jan 2008 08:50:32 +0000 (08:50 +0000)]
MDL-12695 Symantec Norton internet security pop up blocker seems to be stopping user starting a quiz attempt - fixed this by using print_single_button which uses an onclick event to trigger a confirm dialogue, should work better even with popup blockers.
skodak [Fri, 11 Jan 2008 13:09:51 +0000 (13:09 +0000)]
MDL-12926 Discussion list shows all discussion in separate mode if user not member of any group and does not have accessallgroups; merged from MOODLE_19_STABLE
urs_hunkler [Fri, 11 Jan 2008 09:29:53 +0000 (09:29 +0000)]
merged from 1.9 :: MDL-12221 :: removed the "nocoursepage" hack, which was an attempt to find out if a page has a layout-table. I developed this hack because Martin said, that he does not see any chance to implement a layout-table check. This hack followed several exception hacks because Moodel pages are inconsistently created. All those exceptions I could delete too.
Now I added a JavaScript layout-table check which works great.
skodak [Thu, 10 Jan 2008 23:13:30 +0000 (23:13 +0000)]
MDL-12921 Using visible groups in Q&A Forums student can't reply to discussions for All participants (including groups code cleanup); merged from MOODLE_19_STABLE
tjhunt [Thu, 10 Jan 2008 10:58:16 +0000 (10:58 +0000)]
MDL-12373 - More instances of links to the participants list being shown in the navigation bar to people without the necessary capability.
I have not copied and pasted the same code into lots of different places. That sucks. We really need to refactor this into a function that builds the navigation up to, and including the user's name. However, I don't have time now. A list of the places touched by this bug (MDL-12373) will at least give a complete list of places that such a refactoring would have to touch.
jmg324 [Thu, 10 Jan 2008 09:47:29 +0000 (09:47 +0000)]
altered require statement for config.
Not sure why, but the referential file path was causing cron to fail because config couldn't be found when running from scheduled cron (running in browser was fine!
It looks tidier anyway to have both require's done the same way, so now both user $dirroot to locate files required and this works with scheduled cron.
mjollnir_ [Wed, 9 Jan 2008 23:15:44 +0000 (23:15 +0000)]
MDL-12894 Fixing language string mess (language packs containing \n) & moved them to the controllers,
also fixed a few typos and a || instead of && bug. This all relates to the CLI installer.
skodak [Wed, 9 Jan 2008 18:19:42 +0000 (18:19 +0000)]
MDL-12822 removing some unused grade functions (obsoleted by format grade function), renaming PUBLIC API to activity communication API and adding new querylib.php with useful functions (requested by other devs); merged from MOODLE_19_STABLE
tjhunt [Wed, 9 Jan 2008 17:23:47 +0000 (17:23 +0000)]
MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - and there were also instances in blog.