Skip to content

Commit

Permalink
Merge branch 'MDL-82602' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Sep 27, 2024
2 parents 762aa5a + 2c3c080 commit b394315
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ public function warn_if_not_registered() {
protected function mobile_configuration_warning($mobileconfigured) {
$output = '';
if (!$mobileconfigured) {
$settingslink = new moodle_url('/admin/settings.php', ['section' => 'mobilesettings']);
$configurebutton = $this->single_button($settingslink, get_string('enablemobilewebservice', 'admin'));
$settingslink = new moodle_url('/admin/search.php', ['query' => 'enablemobilewebservice']);
$configurebutton = $this->single_button($settingslink, get_string('enablemobilewebservice', 'admin'), 'get');
$output .= $this->warning(get_string('mobilenotconfiguredwarning', 'admin') . ' ' . $configurebutton);
}

Expand Down
2 changes: 1 addition & 1 deletion message/output/airnotifier/classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function check_configuration(): array {

$results = [];
// Check Mobile services enabled.
$summary = html_writer::link((new moodle_url('/admin/settings.php', ['section' => 'mobilesettings'])),
$summary = html_writer::link(new moodle_url('/admin/search.php', ['query' => 'enablemobilewebservice']),
get_string('enablemobilewebservice', 'admin'));
if (empty($CFG->enablewebservices) || empty($CFG->enablemobilewebservice)) {
$results[] = new core\check\result(core\check\result::CRITICAL, $summary, get_string('enablewsdescription', 'webservice'));
Expand Down
2 changes: 1 addition & 1 deletion message/output/airnotifier/requestaccesskey.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
$warnings[] = [
'msg' => get_string('mobilenotconfiguredwarning', 'admin'),
'linkmsg' => get_string('enablemobilewebservice', 'admin'),
'linkurl' => new moodle_url('/admin/settings.php', ['section' => 'mobilesettings']),
'linkurl' => new moodle_url('/admin/search.php', ['query' => 'enablemobilewebservice']),
];
}
} else {
Expand Down

0 comments on commit b394315

Please sign in to comment.