Skip to content

Commit

Permalink
Fix mute url regex display
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl committed Aug 5, 2024
1 parent 2f05062 commit 97c8edd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/form/override_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function definition() {
$mform->setType('url', PARAM_URL);
$urlregex = get_config('tool_heartbeat', 'muteurlregex');
if (!empty($urlregex)) {
$urlregex = stripslashes($urlregex);
$urlregexdisplay = stripslashes($urlregex);
$mform->addRule('url', get_string('required'), 'required', null, 'client');
$mform->addRule('url', get_string('muteurlregex', 'tool_heartbeat', $urlregex), 'regex', $urlregex, 'client');
$mform->addElement('static', 'url_help', '', get_string('muteurlregex', 'tool_heartbeat', $urlregex));
$mform->addRule('url', get_string('muteurlregex', 'tool_heartbeat', $urlregexdisplay), 'regex', $urlregex, 'client');
$mform->addElement('static', 'url_help', '', get_string('muteurlregex', 'tool_heartbeat', $urlregexdisplay));
}

// Override until.
Expand Down

0 comments on commit 97c8edd

Please sign in to comment.