Skip to content

Commit

Permalink
Update Moodle v4.0 y v4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oesantaa committed Nov 28, 2023
1 parent 35ff286 commit 9ff86e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/sms_notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function process_sms($users, $text) {
private function get_users_detail($users) {
global $DB;
$sql = 'SELECT usr.id, usr.firstname, usr.lastname, usr.email, usr.phone2 AS phone
FROM prefix_user AS usr
FROM mdl_user AS usr
WHERE usr.id IN ('.implode(",", $users).')';
$usersdetail = $DB->get_records_sql($sql);
return $usersdetail;
Expand Down
1 change: 0 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
*/

require_once(dirname(__FILE__) . '/../../config.php');
require_login();

// Send SMS pk Api Function.
/**
Expand Down
3 changes: 1 addition & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
get_string('sms_api_from', 'block_sms'),
get_string('sms_api_from', 'block_sms'),
'', PARAM_TEXT));

/* ========================= nexmo ======================= */
/* ========================= LabsMobile ======================= */

$settings->add(new admin_setting_configtext("block_sms_labsmobile_username",
get_string('sms_api_key', 'block_sms'),
Expand Down

0 comments on commit 9ff86e9

Please sign in to comment.