-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor smsapi functions #889
Comments
This issues requires some refactoring for removing the global variables in smsapi-* files:
Note that this will change the way custom api drivers are integrated, and require at least a change note to explain how to migrate. |
New refactoring in fbba0f9 allows to dynamically load the sms classes and pass the corresponding parameters found in the configuration. TODO:
|
Release notes:
|
Currently, smsapi functions contains global variables:
htdocs/sendsms.php
lib/smsovh/smsapi-ovh.inc.php
lib/smsapi-twilio.inc.php
lib/smsapi-signal-cli.inc.php
we should remove global variables and transform the lib/* files into classes, instanciated by a function.
The appropriate configuration parameters in config.inc.php should be passed to the selected class.
Also: in function
get_mobile_and_displayname
inhtdocs/sendsms.php
, the $ldapInstance variable is not accessible. This generates a bug. We should pass it as an argument of the function.The text was updated successfully, but these errors were encountered: