Adding ClockworksmsPlugin in autoload, fixing constant see #7371

1.9.x
Julio Montoya 11 years ago
parent 79ddabcfa0
commit 90b3866bf0
  1. 1
      main/inc/lib/autoload.class.php
  2. 5
      main/inc/lib/usermanager.lib.php

@ -110,6 +110,7 @@ class Autoload
$result['ChamiloSession'] = '/main/inc/lib/chamilo_session.class.php';
$result['Chat'] = '/main/inc/lib/chat.lib.php';
$result['ClassManager'] = '/main/inc/lib/classmanager.lib.php';
$result['ClockworksmsPlugin'] = '/plugin/clockworksms/lib/clockworksms_plugin.class.php';
$result['ClosureCompiler'] = '/main/inc/lib/system/closure_compiler.class.php';
$result['ConditionalLogin'] = '/main/inc/lib/conditional_login.class.php';
$result['Controller'] = '/main/inc/lib/controller.class.php';

@ -207,10 +207,11 @@ class UserManager
$values["prior_lang"] = null;
EventsDispatcher::events('user_registration', $values);
} else {
$phoneNumber = isset($extra['mobile_phone_number']) ? $extra['mobile_phone_number'] : null;
$additionalParameters = array(
'smsType' => WELCOME_LOGIN_PASSWORD,
'smsType' => ClockworksmsPlugin::WELCOME_LOGIN_PASSWORD,
'userId' => $return,
'mobilePhoneNumber' => $extra['mobile_phone_number'],
'mobilePhoneNumber' => $phoneNumber,
'password' => $original_password
);
api_mail_html(

Loading…
Cancel
Save