Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
remove "enable moodle mobile web service" as we are not using them an…
Browse files Browse the repository at this point in the history
…ymore
  • Loading branch information
Glutamat42 committed Apr 5, 2024
1 parent db67f78 commit cfb9d07
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions opt/adler/moodle/adler_setup/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@ function do_adler_roles_exist() {
// enable webservices
set_config('enablewebservices', true);

// enable moodle mobile web service
// TODO: we are not using moodle official mobile service anymore
// set_config('enablemobilewebservice', true); // for any reason this does not set the corresponding option in the web ui and everything seems to work without it anyway.
$external_service_record = $DB->get_record('external_services', array('shortname' => MOODLE_OFFICIAL_MOBILE_SERVICE));
$external_service_record->enabled = 1;
$DB->update_record('external_services', $external_service_record);

// Enable REST server.
$activeprotocols = empty($CFG->webserviceprotocols) ? array() : explode(',', $CFG->webserviceprotocols);

Expand Down

0 comments on commit cfb9d07

Please sign in to comment.