MDL-15402: fix some admin menu titles for repository

This commit is contained in:
jerome 2008-09-04 07:36:53 +00:00
parent ef259bff42
commit 0d0999141b
3 changed files with 12 additions and 3 deletions

View File

@ -17,10 +17,13 @@ $display = true; // fall through to normal display
$pagename = 'repositorycontroller';
if ($edit){
$pagename = 'repositoryinstanceedit';
}else
if ($delete) {
$pagename = 'repositorydelete';
} else if ($new) {
$pagename = 'repositorynew';
$pagename = 'repositoryinstancenew';
}
admin_externalpage_setup($pagename);

View File

@ -189,7 +189,7 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_configtext('repository_cache_expire', get_string('cacheexpire', 'repository'), get_string('configcacheexpire', 'repository'), 120));
$ADMIN->add('repositorysettings', $temp);
$ADMIN->add('repositorysettings', new admin_externalpage('repositorynew',
get_string('createrepository', 'repository'), $url, 'moodle/site:config', true),
get_string('addplugin', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositorydelete',
get_string('deleterepository', 'repository'), $url, 'moodle/site:config', true),
@ -197,6 +197,12 @@ if ($hassiteconfig) {
$ADMIN->add('repositorysettings', new admin_externalpage('repositorycontroller',
get_string('managerepositories', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstancenew',
get_string('createrepository', 'repository'), $url, 'moodle/site:config', true),
'', $url);
$ADMIN->add('repositorysettings', new admin_externalpage('repositoryinstanceedit',
get_string('editrepositoryinstance', 'repository'), $url, 'moodle/site:config', true),
'', $url);
foreach (repository_get_types()
as $repositorytype)
{

View File

@ -20,7 +20,7 @@ $string['deleterepository'] = 'Delete this repository';
$string['deleted'] = 'Repository deleted';
$string['download'] = 'Download';
$string['downloadsucc'] = 'The file has been downloaded successfully';
$string['editrepositoryaccount'] = 'Edit repository accounts';
$string['editrepositoryinstance'] = 'Edit repository instance';
$string['emptytype'] = 'Cannot create repository type: type name is empty';
$string['error'] = 'An unknown error occurred!';
$string['existingrepository'] = 'This repository already exists';