Index: lib/locallib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/locallib.php,v retrieving revision 1.10 diff -u -r1.10 locallib.php --- lib/locallib.php 17 Aug 2007 19:09:19 -0000 1.10 +++ lib/locallib.php 15 Jan 2008 11:37:11 -0000 @@ -99,6 +99,9 @@ $db->debug=true; if (xmldb_local_upgrade($CFG->local_version)) { $db->debug=false; + if (!update_capabilities('local')) { + error('Could not update local capabilities.'); + } if (set_config('local_version', $local_version)) { notify(get_string('databasesuccess'), 'notifysuccess'); notify(get_string('databaseupgradelocal', '', $local_version), 'notifysuccess'); Index: lib/accesslib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/accesslib.php,v retrieving revision 1.421.2.41 diff -u -r1.421.2.41 accesslib.php --- lib/accesslib.php 8 Jan 2008 15:04:04 -0000 1.421.2.41 +++ lib/accesslib.php 15 Jan 2008 11:37:11 -0000 @@ -3141,6 +3141,9 @@ if ($component == 'moodle') { $storedcaps = get_records_select('capabilities', "name LIKE 'moodle/%:%'"); + } else if ($component == 'local') { + $storedcaps = get_records_select('capabilities', + "name LIKE 'local/%:%'"); } else { $storedcaps = get_records_select('capabilities', "name LIKE '$component:%'"); @@ -3779,6 +3782,7 @@ switch ($names[0]) { case 'mod': + case 'local': $string = get_string($stringname, $componentname); break;