MDL-42666 repository_boxnet: Remove hardcoded date for APIv1 end of life
This commit is contained in:
@@ -333,7 +333,7 @@ class repository_boxnet extends repository {
|
||||
$mform->addElement('static', null, '', get_string('information', 'repository_boxnet'));
|
||||
$mform->addElement('static', null, '', get_string('warninghttps', 'repository_boxnet'));
|
||||
|
||||
if (get_config('boxnet', 'api_key') && strtotime('15 December 2013') > time()) {
|
||||
if (get_config('boxnet', 'api_key')) {
|
||||
$url = new moodle_url('/repository/boxnet/migrationv1.php');
|
||||
$url = $url->out();
|
||||
$mform->addElement('static', null, '', get_string('migrationadvised', 'repository_boxnet', $url));
|
||||
|
||||
@@ -51,9 +51,7 @@ $confirm = optional_param('confirm', false, PARAM_BOOL);
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading('Reference migration tool');
|
||||
|
||||
if (strtotime('15 December 2013') < time()) {
|
||||
echo html_writer::tag('p', 'Sorry, the API v1 has already reached its end of life, the migration is no more possible.');
|
||||
} else if ($confirm && confirm_sesskey()) {
|
||||
if ($confirm && confirm_sesskey()) {
|
||||
echo html_writer::start_tag('pre', array());
|
||||
repository_boxnet_migrate_references_from_apiv1();
|
||||
echo html_writer::end_tag('pre', array());
|
||||
|
||||
Reference in New Issue
Block a user