mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Standardize and update code
This commit is contained in:
@@ -88,7 +88,6 @@ class FormSms
|
||||
return 1;
|
||||
}
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
/**
|
||||
* Show the form to input an sms.
|
||||
*
|
||||
@@ -96,16 +95,15 @@ class FormSms
|
||||
* @param int $showform Show form tags and submit button (recommanded is to use with value 0)
|
||||
* @return void
|
||||
*/
|
||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
function show_form($morecss='titlefield', $showform=1)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf, $langs, $user, $form;
|
||||
|
||||
if (! is_object($form)) $form=new Form($this->db);
|
||||
|
||||
$langs->load("other");
|
||||
$langs->load("mails");
|
||||
$langs->load("sms");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('other', 'mails', 'sms'));
|
||||
|
||||
$soc=new Societe($this->db);
|
||||
if (!empty($this->withtosocid) && $this->withtosocid > 0)
|
||||
|
||||
Reference in New Issue
Block a user