Created a dummy variable to avoid being redirected back to the upgrade settings page
This commit is contained in:
parent
43b91df8ec
commit
34c0622d95
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ class mod_customcert_admin_setting_upload extends admin_setting_configtext {
|
|||
* @return string
|
||||
*/
|
||||
public function output_html($data, $query = '') {
|
||||
// Create a dummy variable for this field to avoid being redirected back to the upgrade settings page.
|
||||
$this->config_write($this->name, '');
|
||||
|
||||
return format_admin_setting($this, $this->visiblename,
|
||||
html_writer::link(new moodle_url('/mod/customcert/upload_image.php'), get_string('upload')),
|
||||
$this->description, true, '', null, $query);
|
||||
|
|
Loading…
Reference in a new issue