skodak [Fri, 5 Oct 2007 15:06:38 +0000 (15:06 +0000)]
MDL-11521 fixed problems when creating contexts and aprents does not exist yet
MDL-11527 fixed warning from $CFG->defaultuserroleid when installing and upgrading
+ removed reusing of previous contexts in has_capability() and get_context_instance() because it was hiding critical errors when context was false, not specified, etc.
+ tweaked roles defaults - faster and defaults are applied when roles exist
+ SYSCONTEXTID may be specified in config.php to eliminate 1 db query
+ static context cache is now reset after rebuilding of context paths
+ path field in context table is now nullable - pg compatibility requirement
+ other minor fixes
skodak [Thu, 4 Oct 2007 22:57:14 +0000 (22:57 +0000)]
MDL-11580 support for hidden state modification in gradebook from activities (quiz now only) - part 1
the hiding/unhiding should be IMO locked in gradebook UI when activity overrides it
gbateson [Thu, 4 Oct 2007 05:32:27 +0000 (05:32 +0000)]
use target="$CFG->framename" instead of $CFG->frametarget when HotPot navigation is set to "Moodle navigation frame"so that Moodle does not get stuck in sub frame
stronk7 [Wed, 3 Oct 2007 18:39:38 +0000 (18:39 +0000)]
Moving some uses of deprecated functions to recordsets
in cron. MDL-11571 and MDL-11487.
Fixed wrong call to cleanup_dirty_contexts() and changed
to gc_cache_flags(). Please review. MDL-11347
moodler [Wed, 3 Oct 2007 12:24:06 +0000 (12:24 +0000)]
Fixed longtimenosee unenrolments. user_lastaccess and role_assignments were growing with uneccessary entries, to the point where memory limits were reached and in the end NO unenrolments were happening at all.
jamiesensei [Wed, 3 Oct 2007 04:42:57 +0000 (04:42 +0000)]
MDL-11139 "Need to pass courseid or cmid to this script when moving questions between categories " added COURSE to globals in function that redirects browser to contextmoveq page.
skodak [Tue, 2 Oct 2007 21:38:53 +0000 (21:38 +0000)]
MDL-11562 supportname and supportemail are are now initialized after admin user setup
MDL-11566 only site shortname, fullname and desc are required/displayed during installation
MDL-11567 fixed upgradesettings redirects if error in settings
MDL-11143 defaultfrontpageroleid moved to Frontpage settings page (easier to find), speedup
skodak [Tue, 2 Oct 2007 16:50:43 +0000 (16:50 +0000)]
DONAL, PLEASE START USING OUR DB EDITOR! the last commit did have invalid XML, incorrect next/prev attributes, different data in install.xml and upgrade.php; the main reason to have this editor was to prevent this type of critical errors ;-)
skodak [Tue, 2 Oct 2007 16:20:45 +0000 (16:20 +0000)]
MDL-11555 temporary patch for too long index on mysql - in mysql the limit is 333 unicode chars
move the gradebook cleanup to the end of upgrade.php - please keep it there
martinlanghoff [Tue, 2 Oct 2007 08:46:27 +0000 (08:46 +0000)]
accesslib: dirty context handling now uses cache_flags
get_dirty_contexts() and mark_context_dirty() now use cache_flags
infrastructure. Remove deprecated cleanup_dirty_contexts() - this is
now handled by gc_cache_flags() in a more generic way.
martinlanghoff [Tue, 2 Oct 2007 08:39:44 +0000 (08:39 +0000)]
moodlelib: Introducing the cache_flags functions
These are functions for handling the volatile entries in the
cache_flags table.
get_cache_flags() - get array of current flags
set_cache_flag() - set a single flag
unset_cache_flag() - unset a single flag
gc_cache_flags() - garbage-collect expired flags
martinlanghoff [Tue, 2 Oct 2007 08:34:10 +0000 (08:34 +0000)]
dmllib: more consistent err handling for execute_sql() and others
Silent errors in execute_sql() have been causing us lots of grief.
Turns out that if you have dblogerror set, it _will_ write it to the
logs.
DMLlib wasn't consistent. Most "modern" codepaths were calling both
debugging() and the dblogerror idiom. So we make all calls to
$db->Execute() consistent.
(Some exceptions remain, mostly for hardcoded SQL, such as the SET
statements when we connect...)