Laurent Destailleur преди 4 години
родител
ревизия
8adf1852b1
променени са 3 файла, в които са добавени 14 реда и са изтрити 19 реда
  1. 2 2
      htdocs/comm/action/card.php
  2. 7 17
      htdocs/core/class/html.form.class.php
  3. 5 0
      htdocs/security.txt

+ 2 - 2
htdocs/comm/action/card.php

@@ -1190,7 +1190,7 @@ if ($action == 'create')
 
         //Time Type
         print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("TimeType").'</td><td colspan="3">';
-        print $form->select_type_duration('offsetunit');
+        print $form->selectTypeDuration('offsetunit');
         print '</td></tr>';
 
         //Reminder Type
@@ -1203,7 +1203,7 @@ if ($action == 'create')
 
         //Mail Model
         print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("EMailTemplates").'</td><td colspan="3">';
-        print $form->select_model_mail('actioncommsend', 'actioncomm_send');
+        print $form->selectModelMail('actioncommsend', 'actioncomm_send');
         print '</td></tr>';
 
 

+ 7 - 17
htdocs/core/class/html.form.class.php

@@ -5673,35 +5673,27 @@ class Form
 		return $retstring;
 	}
 
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
 	/**
-	 * select_type_duration
+	 * selectTypeDuration
 	 *
 	 * @param   string   $prefix     Prefix
 	 * @param   string   $selected   Selected type
 	 * @return  string               HTML select string
 	 */
-	public function select_type_duration($prefix, $selected = 'minute')
+	public function selectTypeDuration($prefix, $selected = 'minute')
 	{
-		// phpcs:enable
 		global $langs;
 
-        $retstring = '';
-
         $TDurationTypes = array('year'=>$langs->trans('Years'), 'month'=>$langs->trans('Month'), 'week'=>$langs->trans('Weeks'), 'day'=>$langs->trans('Days'), 'hour'=>$langs->trans('Hours'), 'minute'=>$langs->trans('Minutes'));
 
-        $retstring .= '<select class="flat" id="select_'.$prefix.'type_duration" name="'.$prefix.'type_duration">';
-
-        foreach ($TDurationTypes as $key=>$typeduration){
-
+        $retstring = '<select class="flat" id="select_'.$prefix.'type_duration" name="'.$prefix.'type_duration">';
+        foreach ($TDurationTypes as $key=>$typeduration) {
             $retstring .= '<option value="'.$key.'"';
-            if($key == $selected)
-            {
+            if ($key == $selected) {
                 $retstring .= " selected";
             }
             $retstring .= ">".$typeduration."</option>";
         }
-
         $retstring .= "</select>";
 
         return $retstring;
@@ -7980,17 +7972,15 @@ class Form
 		return $ret;
 	}
 
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
 	/**
-	 * select_model_mail
+	 * selectModelMail
 	 *
 	 * @param   string   $prefix     Prefix
 	 * @param   string   $modelType  Model type
 	 * @return  string               HTML select string
 	 */
-    public function select_model_mail($prefix, $modelType = '')
+    public function selectModelMail($prefix, $modelType = '')
     {
-    	// phpcs:enable
         global $langs, $db, $user;
 
         $retstring = '';

+ 5 - 0
htdocs/security.txt

@@ -0,0 +1,5 @@
+# Security policies of Dolibarr ERP CRM project
+Contact: mailto:security@dolibarr.org
+Preferred-Languages: en
+Policy: https://github.com/Dolibarr/dolibarr/security/policy
+Expires: Sat, 31 Dec 2050 00:00:00 GMT