Skip to content

Commit

Permalink
cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Nov 24, 2023
1 parent 35364f6 commit 5d049c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions classes/wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public function request($method, $data) {

if (empty($info['http_code']) || $info['http_code'] != 200 || !empty($errorno)) {
// Endpoint returned an error.
debugging(print_r($response, true));
if (is_string($response)) {
debugging($response);
}
return get_string('endpoint_error', 'enrol_wallet');
}
return json_decode($response, true);
Expand Down Expand Up @@ -277,7 +279,7 @@ public function create_wordpress_user($user, $password = null) {
* @param string $redirect redirection url after login or logout from wordpress website
*/
public function login_logout_user_to_wordpress($userid, $method, $redirect) {
$walletsource = get_config('enrol_wallet','walletsource');
$walletsource = get_config('enrol_wallet', 'walletsource');
$allowed = get_config('enrol_wallet', 'wordpressloggins');
$wordpressurl = get_config('enrol_wallet', 'wordpress_url');
$wordpressurl = clean_param($wordpressurl, PARAM_URL);
Expand Down
2 changes: 1 addition & 1 deletion lang/ar/enrol_wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@
$string['wallet:deletecoupon'] = 'حذف كوبون المحفظة';
$string['wallet:downloadcoupon'] = 'تنزيل كوبونات المحفظة';
$string['wallet:editcoupon'] = 'تحرير الكوبونات';
$string['wallet:enrolself'] = 'قم بشراء مقرر تدريبية من خلال مثيل محفظة التسجيل' ;
$string['wallet:enrolself'] = 'قم بشراء مقرر تدريبية من خلال مثيل محفظة التسجيل';
$string['wallet:manage'] = 'إدارة المستخدمين المسجلين';
$string['wallet:unenrol'] = 'إلغاء تسجيل المستخدمين من المقرر الدراسي';
$string['wallet:unenrolself'] = 'إلغاء التسجيل الذاتي من المقرر الدراسي';
Expand Down

0 comments on commit 5d049c1

Please sign in to comment.