Internal: Maintenance: Rename coursecopy folder into course_copy - refs #4535

Author: @christianbeeznest
pull/4575/head
christianbeeznest 2 years ago committed by GitHub
parent 2a5555120a
commit 995eb2ea36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      psalm.xml
  2. 2
      public/main/admin/course_list.php
  3. 2
      public/main/admin/course_list_admin.php
  4. 2
      public/main/admin/index.php
  5. 2
      public/main/course_copy/copy_course.php
  6. 0
      public/main/course_copy/copy_course_session.php
  7. 0
      public/main/course_copy/copy_course_session_selected.php
  8. 0
      public/main/course_copy/create_backup.php
  9. 2
      public/main/course_copy/import_backup.php
  10. 2
      public/main/course_copy/import_moodle.php
  11. 0
      public/main/course_copy/move_users_from_course_to_session.php
  12. 0
      public/main/course_copy/recycle_course.php
  13. 10
      public/main/course_info/maintenance.php
  14. 2
      public/main/course_info/maintenance_coach.php

@ -22,7 +22,7 @@
<directory name="public/main/course_home"/>
<directory name="public/main/course_info"/>
<directory name="public/main/course_progress"/>
<directory name="public/main/coursecopy"/>
<directory name="public/main/course_copy"/>
<directory name="public/main/create_course"/>
<!-- <directory name="public/main/cron"/>-->
<directory name="public/main/dashboard"/>

@ -188,7 +188,7 @@ function get_course_data($from, $number_of_items, $column, $direction, $dataFunc
);
$actions[] = Display::url(
Display::return_icon('backup.png', get_lang('Create a backup')),
$path.'coursecopy/create_backup.php?'.api_get_cidreq_params($courseId)
$path.'course_copy/create_backup.php?'.api_get_cidreq_params($courseId)
);
$actions[] = Display::url(
Display::return_icon('delete.png', get_lang('Delete')),

@ -186,7 +186,7 @@ function get_course_data($from, $number_of_items, $column, $direction, $dataFunc
);
$actions[] = Display::url(
Display::return_icon('backup.png', get_lang('Create a backup')),
$path.'coursecopy/create_backup.php?'.api_get_cidreq_params($courseId)
$path.'course_copy/create_backup.php?'.api_get_cidreq_params($courseId)
);
$actions[] = Display::url(
Display::return_icon('delete.png', get_lang('Delete')),

@ -236,7 +236,7 @@ if (api_is_platform_admin()) {
if (api_is_global_platform_admin()) {
$items[] = [
'url' => '../coursecopy/copy_course_session.php',
'url' => '../course_copy/copy_course_session.php',
'label' => get_lang('Copy from course in session to another session'),
];
}

@ -106,7 +106,7 @@ if (Security::check_token('post') && (
$form = new FormValidator(
'copy_course',
'post',
api_get_path(WEB_CODE_PATH).'coursecopy/copy_course.php?'.api_get_cidreq()
api_get_path(WEB_CODE_PATH).'course_copy/copy_course.php?'.api_get_cidreq()
);
$form->addSelect('destination_course', get_lang('Select target course'), $courses);

@ -146,7 +146,7 @@ if (Security::check_token('post') && ('course_select_form' === $action || 'full_
$form = new FormValidator(
'import_backup_form',
'post',
api_get_path(WEB_CODE_PATH).'coursecopy/import_backup.php?'.api_get_cidreq(),
api_get_path(WEB_CODE_PATH).'course_copy/import_backup.php?'.api_get_cidreq(),
'',
['enctype' => 'multipart/form-data']
);

@ -56,7 +56,7 @@ $template = new Template(get_lang('Import from Moodle'));
$infoMsg = Display::return_message(get_lang('Import from MoodleInstructions'), 'normal', false);
$template->assign('info_msg', $infoMsg);
$template->assign('form', $form->returnForm());
$templateName = $template->get_template('coursecopy/import_moodle.tpl');
$templateName = $template->get_template('course_copy/import_moodle.tpl');
$content = $template->fetch($templateName);
$template->assign('header', get_lang('Import from Moodle'));

@ -29,19 +29,19 @@ echo Display::page_header($nameTools);
<div class="sectioncomment">
<ul>
<li>
<a href="../coursecopy/create_backup.php?<?php echo api_get_cidreq(); ?>">
<a href="../course_copy/create_backup.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Create a backup and import and import'); ?>
</a><br/>
<?php echo get_lang('Create a backup and import and importInfo'); ?>
</li>
<li>
<a href="../coursecopy/import_backup.php?<?php echo api_get_cidreq(); ?>">
<a href="../course_copy/import_backup.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Import backup and import and import'); ?>
</a><br/>
<?php echo get_lang('Import backup and import and importInfo'); ?>
</li>
<li>
<a href="../coursecopy/import_moodle.php?<?php echo api_get_cidreq(); ?>">
<a href="../course_copy/import_moodle.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Import from Moodle'); ?>
</a><br/>
<?php echo get_lang('Import from MoodleInfo'); ?>
@ -51,7 +51,7 @@ echo Display::page_header($nameTools);
<div class="sectiontitle">
<?php echo Display::return_icon('copy.gif', get_lang('Copy course')); ?>&nbsp;&nbsp;
<a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq(); ?>">
<a href="../course_copy/copy_course.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Copy course'); ?></a>
</div>
<div class="sectioncomment"><?php echo get_lang('DescriptionCopy course'); ?>
@ -59,7 +59,7 @@ echo Display::page_header($nameTools);
<div class="sectiontitle">
<?php echo Display::return_icon('delete.png', get_lang('Empty this course')); ?>&nbsp;&nbsp;
<a href="../coursecopy/recycle_course.php?<?php echo api_get_cidreq(); ?>">
<a href="../course_copy/recycle_course.php?<?php echo api_get_cidreq(); ?>">
<?php echo get_lang('Empty this course'); ?>
</a>
</div>

@ -30,7 +30,7 @@ echo Display::page_subheader(
).'&nbsp;&nbsp;'.get_lang('Backup and import and import')
);
$url = api_get_path(WEB_CODE_PATH).'coursecopy/copy_course_session_selected.php?'.api_get_cidreq();
$url = api_get_path(WEB_CODE_PATH).'course_copy/copy_course_session_selected.php?'.api_get_cidreq();
$link = Display::url(get_lang('Copy course'), $url);
?>

Loading…
Cancel
Save