mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-15402: fix some admin menu titles for repository
This commit is contained in:
parent
ef259bff42
commit
0d0999141b
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user