]>
git.mjollnir.org Git - moodle.git/log
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
toyomoyo [Thu, 6 Sep 2007 06:25:40 +0000 (06:25 +0000)]
merged fix for MDL-9613, spliting the queries into 2 for site/course block respectively
toyomoyo [Thu, 6 Sep 2007 05:04:55 +0000 (05:04 +0000)]
MDL-11128, creating grade items after restoring from a pre 1.9 backup
mattc-catalyst [Thu, 6 Sep 2007 01:35:37 +0000 (01:35 +0000)]
MDL-10888: groupings - mod/workshop - add grouping support
stronk7 [Wed, 5 Sep 2007 23:12:31 +0000 (23:12 +0000)]
Bump backup version!
stronk7 [Wed, 5 Sep 2007 23:08:52 +0000 (23:08 +0000)]
Fixed bug commented in my previous commit. Was caused by the
commit itselfl. My fault. (blush)
stronk7 [Wed, 5 Sep 2007 19:19:34 +0000 (19:19 +0000)]
Now restoring groups is cross-db (the detection of existing groups)
(NOTE: There is one pending bug about restoring old groups to 1.9.
Commented to Petr. Added here because I've to go NOW!)
Merged from MOODLE_18_STABLE
skodak [Wed, 5 Sep 2007 19:15:21 +0000 (19:15 +0000)]
MDL-11130 added aggregation inside all subcategories + added graded/all aggregation option
stronk7 [Wed, 5 Sep 2007 15:46:16 +0000 (15:46 +0000)]
Repeated fields aren't necessary at all since Moodle 1.7
and, in fact, they throw error if using limits! MDL-9592
Merged from MOODLE_18_STABLE
nfreear [Wed, 5 Sep 2007 14:34:33 +0000 (14:34 +0000)]
MDL-11134, Accessibility: move help link into <label>, so it won't be ignored in JAWS forms mode.
moodler [Wed, 5 Sep 2007 09:17:19 +0000 (09:17 +0000)]
Removed hardcoded string 'course grades category'
toyomoyo [Wed, 5 Sep 2007 04:39:07 +0000 (04:39 +0000)]
some fixes for user report
stronk7 [Tue, 4 Sep 2007 23:18:41 +0000 (23:18 +0000)]
Now the Oracle XMLDB generator detects changes of precision
in NUMBERs without decimals (virtually INTs) and is able to perform the
change of precision properly
Merged from MOODLE_18_STABLE
stronk7 [Tue, 4 Sep 2007 22:13:30 +0000 (22:13 +0000)]
Added one new test to change precission of a numeric field
to a smaller one. It breaks Oracle in its current status.
Merged from MOODLE_18_STABLE
skodak [Tue, 4 Sep 2007 21:56:30 +0000 (21:56 +0000)]
MDL-11069 reimplemented grade export flag handling
stronk7 [Tue, 4 Sep 2007 17:51:51 +0000 (17:51 +0000)]
PostgreSQL doesn't like aliases in update statements.
Changing to the whole name as prefix.
jamiesensei [Tue, 4 Sep 2007 13:28:50 +0000 (13:28 +0000)]
removing redundant string fetches
jamiesensei [Tue, 4 Sep 2007 12:42:03 +0000 (12:42 +0000)]
removed stray echo statement
jamiesensei [Tue, 4 Sep 2007 11:55:10 +0000 (11:55 +0000)]
fix for MDL-11106 Images not showing up in shared categories
moodler [Tue, 4 Sep 2007 09:23:21 +0000 (09:23 +0000)]
Standard RSS icon from MDL-4732
moodler [Tue, 4 Sep 2007 07:28:14 +0000 (07:28 +0000)]
DOn't use AJAX if it isn't enabled
moodler [Tue, 4 Sep 2007 06:47:02 +0000 (06:47 +0000)]
Don't show message popups for guests
moodler [Tue, 4 Sep 2007 05:56:19 +0000 (05:56 +0000)]
Updating grades will update the grade_item too
moodler [Tue, 4 Sep 2007 05:50:04 +0000 (05:50 +0000)]
1) Refresh grade item when grades are saved (I was getting assignments with no names in the gradebook)
2) Tidy up how messages are shown after quick grading
jamiesensei [Tue, 4 Sep 2007 05:44:14 +0000 (05:44 +0000)]
fix for some problems with page params
moodler [Tue, 4 Sep 2007 02:48:04 +0000 (02:48 +0000)]
Fixed logic
stronk7 [Mon, 3 Sep 2007 23:25:35 +0000 (23:25 +0000)]
Global change in the way to calculate widths and heights to
render the IMS iframe properly. Should be working ok both under
normal and rounded-corner themes and under FF, Safari and IE
stronk7 [Mon, 3 Sep 2007 23:20:51 +0000 (23:20 +0000)]
Improved ims styles + working under rounded-corner themes.
stronk7 [Mon, 3 Sep 2007 19:41:55 +0000 (19:41 +0000)]
Clossing the content div round corners properly.
stronk7 [Mon, 3 Sep 2007 19:36:46 +0000 (19:36 +0000)]
Now the "content" rounded corners are "ID-entificable". Needed to
calculate some heights in the IMS resource type. Note it's only
the "content" id. All the rest of rounded boxes haven't IDs at all.