? MDL-13000.diff ? MDL-13001.diff ? config.php ? localcaps.diff ? localsettings.diff ? localstuff.patch ? theme/green ? theme/lo8 ? theme/mountdesales ? theme/rhs ? theme/rhs.tgz Index: lang/en_utf8/moodle.php =================================================================== RCS file: /cvsroot/moodle/moodle/lang/en_utf8/moodle.php,v retrieving revision 1.141.2.16 diff -u -r1.141.2.16 moodle.php --- lang/en_utf8/moodle.php 13 Jan 2008 12:30:17 -0000 1.141.2.16 +++ lang/en_utf8/moodle.php 15 Jan 2008 04:05:12 -0000 @@ -828,6 +828,7 @@ $string['listfiles'] = 'List of files in $a'; $string['listofallpeople'] = 'List of all people'; $string['livelogs'] = 'Live logs from the past hour'; +$string['local'] = 'Local'; $string['locale'] = 'en_AU.UTF-8'; $string['location'] = 'Location'; $string['log_excel_date_format'] = 'yyyy mmmm d h:mm'; 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 04:05:13 -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 'moodle/local:%'"); } else { $storedcaps = get_records_select('capabilities', "name LIKE '$component:%'"); @@ -3787,7 +3790,11 @@ break; case 'moodle': - $string = get_string($stringname, 'role'); + if ($componentname == 'local') { + $string = get_string($stringname, 'local'); + } else { + $string = get_string($stringname, 'role'); + } break; case 'enrol': @@ -3835,6 +3842,9 @@ } else if (preg_match('|^block/|', $component)) { $langname = str_replace('/', '_', $component); $string = get_string('blockname', $langname); + } else if (preg_match('|^local|', $component)) { + $langname = str_replace('/', '_', $component); + $string = get_string('local'); } else { $string = get_string('coresystem'); } Index: lib/locallib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/locallib.php,v retrieving revision 1.10.2.2 diff -u -r1.10.2.2 locallib.php --- lib/locallib.php 15 Jan 2008 01:39:55 -0000 1.10.2.2 +++ lib/locallib.php 15 Jan 2008 04:05:13 -0000 @@ -47,6 +47,23 @@ * when your moodle instance is first installed, xmldb_local_upgrade() will be called * with $oldversion set to 0, so that all the updates run. * + * Local capabilities + * ------------------ + * + * If your local customisations require their own capabilities, use + * + * local/db/access.php + * + * You should create an array called $local_capabilities, which looks like: + * + * $local_capabilities = array( + * 'moodle/local:capability' => array( + * 'captype' => 'read', + * 'contextlevel' => CONTEXT_SYSTEM, + * ), + * ); + * + * * * Local language support * ----------------------