skodak [Sun, 16 Sep 2007 09:25:35 +0000 (09:25 +0000)]
fixed warning - must initialise objects properly
skodak [Sun, 16 Sep 2007 09:21:29 +0000 (09:21 +0000)]
MDL-9574 + MDL-9607 fixed undefined $user->id in personal context
stronk7 [Sun, 16 Sep 2007 08:30:19 +0000 (08:30 +0000)]
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
moodler [Sun, 16 Sep 2007 04:12:52 +0000 (04:12 +0000)]
Automatic installer.php lang files by installer_builder (
20070916)
iarenaza [Sat, 15 Sep 2007 21:38:13 +0000 (21:38 +0000)]
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.
skodak [Sat, 15 Sep 2007 21:17:11 +0000 (21:17 +0000)]
MDL-11296 fixed incorrect detection of duplicate scales in course
skodak [Sat, 15 Sep 2007 19:43:01 +0000 (19:43 +0000)]
applying the same patch to advcheckbox - Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml.
skodak [Sat, 15 Sep 2007 19:36:31 +0000 (19:36 +0000)]
MDL-11295 editorshortcutshelpbutton breaking xhtml strict
skodak [Sat, 15 Sep 2007 19:24:10 +0000 (19:24 +0000)]
MDL-9542 new function needed for showing of final grades in Quiz + minor changes in grading public API used by modules
skodak [Sat, 15 Sep 2007 13:23:28 +0000 (13:23 +0000)]
fixed wrong $options - this->keepdrop_options used instead
skodak [Sat, 15 Sep 2007 09:42:24 +0000 (09:42 +0000)]
MDL-10277 Force password change cannot be unchecked once selected
skodak [Sat, 15 Sep 2007 09:29:58 +0000 (09:29 +0000)]
MDL-11292 fixed Cannot create child auth plugins - patch by Mark Nielsen; used inlude_once() when searching for functions/methods in files
nicolasconnault [Fri, 14 Sep 2007 19:32:50 +0000 (19:32 +0000)]
MDL-11282 Using notice_yesno(), but not sure how to provide a backlink with the cancel action...
nicolasconnault [Fri, 14 Sep 2007 17:21:30 +0000 (17:21 +0000)]
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.
nicolasconnault [Fri, 14 Sep 2007 10:40:49 +0000 (10:40 +0000)]
MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next.
tjhunt [Fri, 14 Sep 2007 09:42:53 +0000 (09:42 +0000)]
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.
tjhunt [Fri, 14 Sep 2007 09:34:52 +0000 (09:34 +0000)]
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.
tjhunt [Fri, 14 Sep 2007 09:33:30 +0000 (09:33 +0000)]
MDL-11284 - Can't save edited questions
nicolasconnault [Fri, 14 Sep 2007 08:54:46 +0000 (08:54 +0000)]
MDL-11278 Admin settings page completed, implementation of settings in the gradebook coming up next.
toyomoyo [Fri, 14 Sep 2007 08:43:10 +0000 (08:43 +0000)]
MDL-11274, hide grades in the grader report if the current grades has no viewhidden capability
nicolasconnault [Fri, 14 Sep 2007 06:57:30 +0000 (06:57 +0000)]
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).
moodler [Fri, 14 Sep 2007 06:51:57 +0000 (06:51 +0000)]
Fix the location of the link to the site-wide grading preferences
moodler [Fri, 14 Sep 2007 05:45:38 +0000 (05:45 +0000)]
Changing string for Overall average (was logged under MDL-11233 even though that's not strictly the correct bug)
stronk7 [Thu, 13 Sep 2007 17:51:48 +0000 (17:51 +0000)]
Now using one cross-db solution to be able to
simulate the status boolean ins assignment
submissions. MDL-8164 & MDL-10846
tjhunt [Thu, 13 Sep 2007 17:29:08 +0000 (17:29 +0000)]
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.
tjhunt [Thu, 13 Sep 2007 16:25:00 +0000 (16:25 +0000)]
MDL-11213 - Quiz preview attempts show up in item analysis. Fix thanks to Jean-Michel Vedrine. Merged from MOODLE_18_STABLE.
nicolasconnault [Thu, 13 Sep 2007 15:11:16 +0000 (15:11 +0000)]
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"
nicolasconnault [Thu, 13 Sep 2007 13:44:35 +0000 (13:44 +0000)]
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
tjhunt [Thu, 13 Sep 2007 10:47:05 +0000 (10:47 +0000)]
MDL-11231 - Missing "correct" tick in Close question with answer '0'. Merged from MOODLE_18_STABLE.
nfreear [Thu, 13 Sep 2007 09:13:00 +0000 (09:13 +0000)]
MDL-11160, Cron exhausts memory on "Removing expired enrolments ..." - changing nested foreach to JOINs with while(..rs_fetch_next_record).
moodler [Thu, 13 Sep 2007 08:59:31 +0000 (08:59 +0000)]
Added Zoomspider as allowed to enter when opentogoogle is open
moodler [Thu, 13 Sep 2007 06:42:49 +0000 (06:42 +0000)]
Patch as suggested by Eloy in MDL-11237 to work around a nasty PHP bug in PHP 5.20
nicolasconnault [Thu, 13 Sep 2007 04:02:55 +0000 (04:02 +0000)]
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.
diml [Wed, 12 Sep 2007 21:23:55 +0000 (21:23 +0000)]
changes reindexing strategy : deletes records rather than create back table
search db model transfered to block_search. No db model needed here.
diml [Wed, 12 Sep 2007 21:22:15 +0000 (21:22 +0000)]
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
nicolasconnault [Wed, 12 Sep 2007 15:02:06 +0000 (15:02 +0000)]
Replacing the capability gradereport/grader:manage with moodle/grade:manage
nfreear [Wed, 12 Sep 2007 11:17:35 +0000 (11:17 +0000)]
Fixes MDL-8627, "HTML QuickForm displays (some?) disabled elements in a non-accessible way", overrides parent::getFrozenHtml.
sam_marshall [Wed, 12 Sep 2007 10:14:12 +0000 (10:14 +0000)]
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!)
donal72 [Wed, 12 Sep 2007 03:25:43 +0000 (03:25 +0000)]
Uninitialized variable
martinlanghoff [Wed, 12 Sep 2007 02:57:58 +0000 (02:57 +0000)]
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...
martinlanghoff [Wed, 12 Sep 2007 02:57:26 +0000 (02:57 +0000)]
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...
martinlanghoff [Wed, 12 Sep 2007 02:57:08 +0000 (02:57 +0000)]
redirect() - log performance profiling info
Many heavy pages end in a redirect. Log their profiling data!
Thanks to Matt Clarkson for spotting the problem.
martinlanghoff [Wed, 12 Sep 2007 02:56:50 +0000 (02:56 +0000)]
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.
martinlanghoff [Wed, 12 Sep 2007 02:56:36 +0000 (02:56 +0000)]
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.
martinlanghoff [Wed, 12 Sep 2007 02:56:16 +0000 (02:56 +0000)]
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.
stronk7 [Tue, 11 Sep 2007 19:39:28 +0000 (19:39 +0000)]
Annihilate one wrong use of getNameForObject() now
that we are able to detect REAL check constraints names
stronk7 [Tue, 11 Sep 2007 19:37:13 +0000 (19:37 +0000)]
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
stronk7 [Tue, 11 Sep 2007 19:08:11 +0000 (19:08 +0000)]
Now we aren't guessing check constraint names
but getting the real ones under Oracle. MDL-9356
stronk7 [Tue, 11 Sep 2007 19:07:17 +0000 (19:07 +0000)]
Now we aren't guessing check constraint names
but getting the real ones under MSSQL. MDL-9356
stronk7 [Tue, 11 Sep 2007 19:06:38 +0000 (19:06 +0000)]
Now we aren't guessing check constraint names
but getting the real ones under PostgreSQL. MDL-9356
stronk7 [Tue, 11 Sep 2007 18:35:23 +0000 (18:35 +0000)]
Added some new test to check double creation
and deletion of enums (check constrainsts). MDL-9356
stronk7 [Tue, 11 Sep 2007 18:33:23 +0000 (18:33 +0000)]
General cleanup of debugging messages.
Now change_field_enum() introspects DB and detects
if the enum existed or no, as needed. MDL-9356
thepurpleblob [Tue, 11 Sep 2007 14:55:34 +0000 (14:55 +0000)]
Missing a stripslashes() so TeX functions didn't work
Merged from STABLE_18
thepurpleblob [Tue, 11 Sep 2007 13:55:33 +0000 (13:55 +0000)]
MDL-10092:
Decode HTML entities before processing.
Merged from STABLE_18
jamiesensei [Tue, 11 Sep 2007 09:01:21 +0000 (09:01 +0000)]
removing require that is not needed
jamiesensei [Tue, 11 Sep 2007 08:23:00 +0000 (08:23 +0000)]
fix to make breadcrumbs module independent
diml [Tue, 11 Sep 2007 08:09:02 +0000 (08:09 +0000)]
db scheme note for search engine
diml [Tue, 11 Sep 2007 08:03:40 +0000 (08:03 +0000)]
ensuring php5.0 php4.3 compatibility in cron runs
jgutierr25 [Tue, 11 Sep 2007 07:54:55 +0000 (07:54 +0000)]
Pb with autologinguest
nicolasconnault [Tue, 11 Sep 2007 07:29:48 +0000 (07:29 +0000)]
MDL-10383 Reverting Petr's boolean cast on the array of allowed groups. It makes it impossible to get the "Group event" option in the calendar.
stronk7 [Mon, 10 Sep 2007 22:42:04 +0000 (22:42 +0000)]
Now both check_constraint_exists() and find_check_constraint_name()
are working under mysql, postgresql and mssql. 1st step of MDL-9356
stronk7 [Mon, 10 Sep 2007 22:30:26 +0000 (22:30 +0000)]
Now Oracle is also able to detect its check constraints per field.
stronk7 [Mon, 10 Sep 2007 22:22:23 +0000 (22:22 +0000)]
Adding two new functions to search for check constraints from ddl stuff.
Unused and unfinished for now. I need them in CVS.
stronk7 [Mon, 10 Sep 2007 22:00:24 +0000 (22:00 +0000)]
Preparing getCheckConstraintsFromDB() to retrieve the check constraint
defined for one field. Not used yet but I need it in CVS now.
diml [Mon, 10 Sep 2007 19:48:31 +0000 (19:48 +0000)]
Fixes wildcard exception occurence on deleting resources.
diml [Mon, 10 Sep 2007 17:26:10 +0000 (17:26 +0000)]
add new itemid field for indexing subitems.
diml [Mon, 10 Sep 2007 17:25:35 +0000 (17:25 +0000)]
let lethal exceptions from Lucene passthrough and the cron script finish normally
stronk7 [Mon, 10 Sep 2007 17:13:12 +0000 (17:13 +0000)]
Allow the upgrade_plugins() function to autodetect if the header
has been printed, so it runs in "embedded" mode. Useful to run
submodule installation/upgrade in the same page than the parent. MDL-11183
moodler [Mon, 10 Sep 2007 14:55:32 +0000 (14:55 +0000)]
Removed unnecessary WHERE statement in SQL MDL-11146
jamiesensei [Mon, 10 Sep 2007 13:28:18 +0000 (13:28 +0000)]
test for has_capability before displaying choosecoursefile control as if user does not have permission then control is useless.
tjhunt [Mon, 10 Sep 2007 11:07:39 +0000 (11:07 +0000)]
Take out duplicate $Id$ CVS tags.
moodler [Mon, 10 Sep 2007 07:02:52 +0000 (07:02 +0000)]
Fixed notice when using textlib
nicolasconnault [Mon, 10 Sep 2007 04:58:09 +0000 (04:58 +0000)]
MDL-10723 Another file that escaped the update
stronk7 [Sun, 9 Sep 2007 16:28:16 +0000 (16:28 +0000)]
Extending getCheckConstraintsFromDB() to support a new parameter
used to filter what field in the table we want to know
its check constraints
stronk7 [Sun, 9 Sep 2007 16:09:00 +0000 (16:09 +0000)]
Now mysql returns getCheckConstraintsFromDB() in a compatible
way (array of name & description objects) with the check
constraints found in the table
stronk7 [Sat, 8 Sep 2007 22:58:50 +0000 (22:58 +0000)]
Fix excess of slashing in course names when restoring. MDL-11151
Merged from MOODLE_18_MERGED
stronk7 [Sat, 8 Sep 2007 22:49:13 +0000 (22:49 +0000)]
Fix link in email to new admin report. MDL-7850
Merged from MOODLE_18_STABLE
stronk7 [Sat, 8 Sep 2007 22:45:45 +0000 (22:45 +0000)]
Adding some strings for the new backups report. MDL-7850
Merged from MOODLE_18_STABLE
stronk7 [Sat, 8 Sep 2007 22:41:27 +0000 (22:41 +0000)]
Redirecting old backup log to the new one. MDL-7850
Merged from MOODLE_18_STABLE
stronk7 [Sat, 8 Sep 2007 22:36:29 +0000 (22:36 +0000)]
Adding new report to display scheduled backup logs. MDL-7850
Merged from MOODLE_18_STABLE
skodak [Sat, 8 Sep 2007 20:53:05 +0000 (20:53 +0000)]
MDL-7380 converted various places to use new groups API
moodler [Sat, 8 Sep 2007 03:57:39 +0000 (03:57 +0000)]
Automatic installer.php lang files by installer_builder (
20070908)
diml [Fri, 7 Sep 2007 18:56:17 +0000 (18:56 +0000)]
add postgress model for search
diml [Fri, 7 Sep 2007 18:54:47 +0000 (18:54 +0000)]
fixes docdate bad default value format. Was '0', should have been 0.
diml [Fri, 7 Sep 2007 18:52:00 +0000 (18:52 +0000)]
enhance cron response when disabled.
diml [Fri, 7 Sep 2007 18:51:16 +0000 (18:51 +0000)]
fixes bad path in checkDB()
jmg324 [Fri, 7 Sep 2007 14:49:30 +0000 (14:49 +0000)]
MDL-11159 adding a name to block config form for javascript support
thepurpleblob [Fri, 7 Sep 2007 14:24:18 +0000 (14:24 +0000)]
MDL-11147:
Debug screen now supports LaTeX/Ghostscript renderer.
Merged from STABLE_18
nfreear [Fri, 7 Sep 2007 13:53:28 +0000 (13:53 +0000)]
MDL-11158, "& needs fix to & in ... for 'en' and other language packs"
skodak [Fri, 7 Sep 2007 09:43:14 +0000 (09:43 +0000)]
MDL-10939 converting news_item block too
jamiesensei [Fri, 7 Sep 2007 08:01:08 +0000 (08:01 +0000)]
oops. Stray 'as' used for table name alias in SQL.
moodler [Fri, 7 Sep 2007 04:38:10 +0000 (04:38 +0000)]
Automatic installer.php lang files by installer_builder (
20070907)
toyomoyo [Fri, 7 Sep 2007 03:16:25 +0000 (03:16 +0000)]
merged fix for MDL-11111 number of search results is not always correct in the role assignment view
pichetp [Fri, 7 Sep 2007 02:38:02 +0000 (02:38 +0000)]
Correcting a little error: datesetitem = array(); instead of datasetitem = array();
line +-550 $question->dataset[$datasetname]->datasetitem = array();
moodler [Fri, 7 Sep 2007 02:20:50 +0000 (02:20 +0000)]
Added string needed for RTL
stronk7 [Thu, 6 Sep 2007 18:31:39 +0000 (18:31 +0000)]
Bump. Dropping one UNIQUE index over NULLable columns. It isn't
cross-db at all. So we make the composite index not unique
to get speed benefits but the unique constraint is
controlled programatically.
stronk7 [Thu, 6 Sep 2007 18:31:13 +0000 (18:31 +0000)]
Dropping one UNIQUE index over NULLable columns. It isn't
cross-db at all. So we make the composite index not unique
to get speed benefits but the unique constraint is
controlled programatically.
nfreear [Thu, 6 Sep 2007 11:30:53 +0000 (11:30 +0000)]
SQL: Added 't.rawname' to GROUP BY clause following warning
skodak [Thu, 6 Sep 2007 10:19:24 +0000 (10:19 +0000)]
MDL-7380 added new groups API functions for use in course related pages (very similar to functions for activities) + fixed grade code to use these new functions
toyomoyo [Thu, 6 Sep 2007 07:09:36 +0000 (07:09 +0000)]
merged fix for MDL-11064, users can't see teacher's profile