28089 Commits

Author SHA1 Message Date
skodak
1c54b2bb31 improved accessibility of user edit page - adding help icons, removing incorrect static help from interest, improving interests strings 2007-09-16 09:39:03 +00:00
skodak
a0478c0a18 fixed incorrect coding style {} 2007-09-16 09:27:00 +00:00
skodak
c1658cc559 fixed warning - must initialise objects properly 2007-09-16 09:25:35 +00:00
skodak
e6eea4f2f4 MDL-9574 + MDL-9607 fixed undefined $user->id in personal context 2007-09-16 09:21:29 +00:00
stronk7
69f2e553e3 Fixed wrong link to log report. Shouldn't these links be in php
code instead of lang files? MDL-11281

Merged from MOODLE_18_STABLE
2007-09-16 08:30:19 +00:00
moodler
d9818fbbc4 Automatic installer.php lang files by installer_builder (20070916) 2007-09-16 04:12:52 +00:00
iarenaza
59b567692d Remove additional check when dealing with hidden courses in LDAP enrolment.
The check is superfluous and uses an inexistant variable ($type) that
was removed when we switched to role based enrolment.

Fixes MDL-11098 MDL-10282 and MDL-8346.
2007-09-15 21:38:13 +00:00
skodak
8fafbc0ea3 MDL-11296 fixed incorrect detection of duplicate scales in course 2007-09-15 21:17:11 +00:00
skodak
43c137ac23 applying the same patch to advcheckbox - Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml. 2007-09-15 19:43:01 +00:00
skodak
e193724e38 MDL-11295 editorshortcutshelpbutton breaking xhtml strict 2007-09-15 19:36:31 +00:00
skodak
6b5c722df5 MDL-9542 new function needed for showing of final grades in Quiz + minor changes in grading public API used by modules 2007-09-15 19:24:10 +00:00
skodak
31314c1270 fixed wrong $options - this->keepdrop_options used instead 2007-09-15 13:23:28 +00:00
skodak
fa1d88eb33 MDL-10277 Force password change cannot be unchecked once selected 2007-09-15 09:42:24 +00:00
skodak
ce4ff1c9cc MDL-11292 fixed Cannot create child auth plugins - patch by Mark Nielsen; used inlude_once() when searching for functions/methods in files 2007-09-15 09:29:58 +00:00
nicolasconnault
b159da787a MDL-11282 Using notice_yesno(), but not sure how to provide a backlink with the cancel action... 2007-09-14 19:32:50 +00:00
nicolasconnault
e171963b3e MDL-11278 Implementation is complete, but grade_categories records in DB are not affected by global settings. This way, when global settings are switched back to "Do not Force", the original category settings will be in place. 2007-09-14 17:21:30 +00:00
nicolasconnault
cd9e4ec472 MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next. 2007-09-14 10:40:49 +00:00
tjhunt
83d22f7064 MDL-11271 - The closing bracket "}" can't be used in cloze question type. Now, you can excape a closing } with a backslash. Do feedback, as well as answer. Merged from MOODLE_18_STABLE. 2007-09-14 09:42:53 +00:00
tjhunt
9c61c44fc1 MDL-11271 - The closing bracket "}" can't be used in cloze question type. Now, you can excape a closing } with a backslash. Merged from MOODLE_18_STABLE. 2007-09-14 09:34:52 +00:00
tjhunt
ace1bf9d8e MDL-11284 - Can't save edited questions 2007-09-14 09:33:30 +00:00
nicolasconnault
53461661ae MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next. 2007-09-14 08:54:46 +00:00
toyomoyo
00374cc5f0 MDL-11274, hide grades in the grader report if the current grades has no viewhidden capability 2007-09-14 08:43:10 +00:00
nicolasconnault
098042baea Issue:
The number of submissions in the Group average and Course average calculations
    should be shown in brackets. (submissions) should be added after the Group average
    and Course average labels.
Solution:
    new grader report preference (Display number of grades in average cells).
2007-09-14 06:57:30 +00:00
moodler
2c7a9bd2af Fix the location of the link to the site-wide grading preferences 2007-09-14 06:51:57 +00:00
moodler
6308b91c13 Changing string for Overall average (was logged under MDL-11233 even though that's not strictly the correct bug) 2007-09-14 05:45:38 +00:00
stronk7
c926560086 Now using one cross-db solution to be able to
simulate the status boolean ins assignment
submissions. MDL-8164 & MDL-10846
2007-09-13 17:51:48 +00:00
tjhunt
e8666d9abb MDL-11081 and MDL-11211 - Implement quiz_question_list_instances. The lach of this function was causing a horrible dataloss bug: MDL-11211. Fix thanks to Janne Mikkonen, refined by me. Merged from MOODLE_16_STABLE. 2007-09-13 17:29:08 +00:00
tjhunt
8472a14d71 MDL-11213 - Quiz preview attempts show up in item analysis. Fix thanks to Jean-Michel Vedrine. Merged from MOODLE_18_STABLE. 2007-09-13 16:25:00 +00:00
nicolasconnault
aae94377b7 Issue:
Only students should appear in the tutor report, however
    sorting by Surname results in the tutor being included, which we don't want.
Solution:
    Confirmed as a bug and filed in tracker: http://tracker.moodle.org/browse/MDL-11233

Issue:
    Clicking on Hide Groups reveals the results for all students
    and all tutors and course staff appear. A tutor should only be able to see
    the results for their tutor group
Solution:
    Prevent tutors from ever seeing student grades from other groups: use existing capabilities
        moodle/site:accessallgroups = off AND moodle/grade:viewall = on

Issue:
    Preferences tab should not be available to users without gradereport/grader:manage capability
Solution:
    Hide the tab completely

Issue:
    Apply different style to average cells
Solution:
    Add css classes to the different average cells, and write a default style in css file.

Issue:
    The Average under group average might be better labelled Course average.
Solution:
    Rename to "Complete average"
2007-09-13 15:11:16 +00:00
nicolasconnault
c421ad4b2e MDL-11233 Corrected typo in grader report lib, and added a second sort parameter for lastname and firstname sorts, to add consistency to result sets. Non-students no longer appear in the list 2007-09-13 13:44:35 +00:00
tjhunt
d9935f2985 MDL-11231 - Missing "correct" tick in Close question with answer '0'. Merged from MOODLE_18_STABLE. 2007-09-13 10:47:05 +00:00
nfreear
c5898fad45 MDL-11160, Cron exhausts memory on "Removing expired enrolments ..." - changing nested foreach to JOINs with while(..rs_fetch_next_record). 2007-09-13 09:13:00 +00:00
moodler
43ee1454df Added Zoomspider as allowed to enter when opentogoogle is open 2007-09-13 08:59:31 +00:00
moodler
e7aa5a8800 Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20 2007-09-13 06:42:49 +00:00
nicolasconnault
83d387c290 MDL-11238 Removed reference to $grade_grade->feedback and replaced with grade_grade_text->feedback. Also instantiated the $grade_grade object properly instead of just get_record(), so that its set_hidden() method could be accessible. 2007-09-13 04:02:55 +00:00
diml
789d27eae6 changes reindexing strategy : deletes records rather than create back table
search db model transfered to block_search. No db model needed here.
2007-09-12 21:23:55 +00:00
diml
cf8ef35e5f changes reindexing strategy : deletes records rather than create back table
checkDB() and checkTableExists() in indexlib.php are obsolete
table name synced with search block install.xml table name
2007-09-12 21:22:15 +00:00
nicolasconnault
b1b6ebf437 Replacing the capability gradereport/grader:manage with moodle/grade:manage 2007-09-12 15:02:06 +00:00
nfreear
a98a90163e Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml. 2007-09-12 11:17:35 +00:00
sam_marshall
d75c6556c7 MDL-11224 Updated UFO Flash JS library from 3.20 to 3.22, preserving minor Moodle-specific change (and added comment to top about it!) 2007-09-12 10:14:12 +00:00
donal72
c824d47823 Uninitialized variable 2007-09-12 03:25:43 +00:00
martinlanghoff
ff991c055a admin/cron: if $PERF->dbqueries is set, profile modules...
The cron() function of some modules can be a huge drag on the
server. Capture profiling data...
2007-09-12 02:57:58 +00:00
martinlanghoff
cf1348caae PERF logging - move handling to moodle_request_shutdown()
By moving the performance profile logging to the very
end of PHP processing, we cover more pages, notably those
that don't end up with a footer or a redirect, like file
serving.

This should improve quality of our performance logs, and
help catch some piggies...
2007-09-12 02:57:26 +00:00
martinlanghoff
3446daa3da redirect() - log performance profiling info
Many heavy pages end in a redirect. Log their profiling data!

Thanks to Matt Clarkson for spotting the problem.
2007-09-12 02:57:08 +00:00
martinlanghoff
6b6eea5575 admin/modules: Avoid calling rebuild_course_cache()
rebuild_course_cache() over all courses is extremely expensive,
not suitable for interactive calling. Better to clear modinfo
and let course/view.php repopulate it as needed.

With this patch we clear out modinfo _only_ for courses affected
by the module we show/hide/delete.
2007-09-12 02:56:50 +00:00
martinlanghoff
d863419245 course/index: move orphan fixups to an optimised fix_coursecategory_orphans()
Move the fixups for orphan courses to the newly minted
fix_coursecategory_orphans() -- and optimise it to take only 1 dbquery for
the common case.

If we do find lots of orphans, we issue 2 updates per orphan.

This cuts down dbqueries drastically - we used to have 2x the number of
courses in the site.
2007-09-12 02:56:36 +00:00
martinlanghoff
f8ea60777c fix_course_sortorder(): fix breakage with large categories, saner error
Two improvements for fix_course_sortorder()

 - If the category has more courses than the shift range
   use a larger shift range to avoid overlapping with itself

 - If things do go wrong during the per-course sortorder updates,
   rollback and try and call ourselves with a 'safe' flag.

Still - far from perfect. Probably the global sortorder approach
is broken. The sanest way is to rework things to always join against
course_categories and order by the combined sortorders.
2007-09-12 02:56:16 +00:00
stronk7
dc6cc11a72 Annihilate one wrong use of getNameForObject() now
that we are able to detect REAL check constraints names
2007-09-11 19:39:28 +00:00
stronk7
da40b0beab And now, the unused getStandardNameForObject() is out. Back to the
exclusive getNameForObject() function, ONLY USED TO CREATE NEW
OBJECTS, NEVER TO GUESS THE NAME OF EXISTING ONES. MDL-9356
2007-09-11 19:37:13 +00:00
stronk7
3d74e77aae Now we aren't guessing check constraint names
but getting the real ones under Oracle. MDL-9356
2007-09-11 19:08:11 +00:00