@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | $maxfilesizearray = getMaxFileSizeArray(); |
| 211 | 211 | $maxmin = $maxfilesizearray['maxmin']; |
| 212 | 212 | if ($maxmin > 0) { |
| 213 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 213 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 214 | 214 | } |
| 215 | 215 | $texte .= ' <input type="file" name="uploadfile">'; |
| 216 | 216 | $texte .= '<input type="hidden" value="PROPALE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 59 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 60 | 60 | /** |
| 61 | 61 | * This is the main function that returns the array of emails |
| 62 | 62 | * |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function add_to_target($mailing_id) |
| 67 | 67 | { |
| 68 | - // phpcs:enable |
|
| 68 | + // phpcs:enable |
|
| 69 | 69 | global $conf, $langs; |
| 70 | 70 | |
| 71 | 71 | $cibles = array(); |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $num = $this->db->num_rows($resql); |
| 235 | 235 | |
| 236 | 236 | if (empty($conf->partnership->enabled)) { |
| 237 | - $num = 0; // Force empty list if category module is not enabled |
|
| 237 | + $num = 0; // Force empty list if category module is not enabled |
|
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | if ($num) { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | // filter_status_thirdparties |
| 260 | 260 | include_once DOL_DOCUMENT_ROOT . '/partnership/class/partnership.class.php'; |
| 261 | 261 | $tmppartnership = new Partnership($this->db); |
| 262 | - $dummy = $tmppartnership->getLibStatut(0); // We call this only to have $tmppartnership->labelStatus loaded |
|
| 262 | + $dummy = $tmppartnership->getLibStatut(0); // We call this only to have $tmppartnership->labelStatus loaded |
|
| 263 | 263 | |
| 264 | 264 | $s .= $form->selectarray('filter_status_partnership', $tmppartnership->labelStatus, GETPOST('filter_status_partnership'), $langs->trans("Status")); |
| 265 | 265 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 59 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 60 | 60 | /** |
| 61 | 61 | * This is the main function that returns the array of emails |
| 62 | 62 | * |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function add_to_target($mailing_id) |
| 67 | 67 | { |
| 68 | - // phpcs:enable |
|
| 68 | + // phpcs:enable |
|
| 69 | 69 | global $conf, $langs; |
| 70 | 70 | |
| 71 | 71 | $cibles = array(); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | return $texte; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 209 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 210 | 210 | /** |
| 211 | 211 | * Function to build a document on disk using the generic odt module. |
| 212 | 212 | * |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | */ |
| 221 | 221 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 222 | 222 | { |
| 223 | - // phpcs:enable |
|
| 223 | + // phpcs:enable |
|
| 224 | 224 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 225 | 225 | global $action; |
| 226 | 226 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | $maxfilesizearray = getMaxFileSizeArray(); |
| 169 | 169 | $maxmin = $maxfilesizearray['maxmin']; |
| 170 | 170 | if ($maxmin > 0) { |
| 171 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 171 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 172 | 172 | } |
| 173 | 173 | $texte .= ' <input type="file" name="uploadfile">'; |
| 174 | 174 | $texte .= '<input type="hidden" value="COMPANY_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | $newfileformat = substr($newfile, strrpos($newfile, '.') + 1); |
| 248 | 248 | if (getDolGlobalString('MAIN_DOC_USE_OBJECT_THIRDPARTY_NAME')) { |
| 249 | 249 | $newfiletmp = dol_sanitizeFileName(dol_string_nospecial($object->name)) . '-' . $newfiletmp; |
| 250 | - $newfiletmp = preg_replace('/__+/', '_', $newfiletmp); // Replace repeated _ into one _ (to avoid string with substitution syntax) |
|
| 250 | + $newfiletmp = preg_replace('/__+/', '_', $newfiletmp); // Replace repeated _ into one _ (to avoid string with substitution syntax) |
|
| 251 | 251 | } |
| 252 | 252 | if (getDolGlobalString('MAIN_DOC_USE_TIMING')) { |
| 253 | 253 | $format = getDolGlobalString('MAIN_DOC_USE_TIMING'); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |
@@ -170,7 +170,7 @@ |
||
| 170 | 170 | $maxfilesizearray = getMaxFileSizeArray(); |
| 171 | 171 | $maxmin = $maxfilesizearray['maxmin']; |
| 172 | 172 | if ($maxmin > 0) { |
| 173 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 173 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 174 | 174 | } |
| 175 | 175 | $texte .= ' <input type="file" name="uploadfile">'; |
| 176 | 176 | $texte .= '<input type="hidden" value="RECEPTION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $maxfilesizearray = getMaxFileSizeArray(); |
| 176 | 176 | $maxmin = $maxfilesizearray['maxmin']; |
| 177 | 177 | if ($maxmin > 0) { |
| 178 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 178 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
| 179 | 179 | } |
| 180 | 180 | $texte .= ' <input type="file" name="uploadfile">'; |
| 181 | 181 | $texte .= '<input type="hidden" value="FACTURE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -410,10 +410,10 @@ discard block |
||
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | // Define substitution array |
| 413 | - $substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object); // Set tags __...__ |
|
| 413 | + $substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object); // Set tags __...__ |
|
| 414 | 414 | $array_object_from_properties = $this->get_substitutionarray_each_var_object($object, $outputlangs); |
| 415 | - $array_objet = $this->get_substitutionarray_object($object, $outputlangs); // Set tags object_... |
|
| 416 | - $array_user = $this->get_substitutionarray_user($user, $outputlangs); // Set tags myuser_... |
|
| 415 | + $array_objet = $this->get_substitutionarray_object($object, $outputlangs); // Set tags object_... |
|
| 416 | + $array_user = $this->get_substitutionarray_user($user, $outputlangs); // Set tags myuser_... |
|
| 417 | 417 | $array_soc = $this->get_substitutionarray_mysoc($mysoc, $outputlangs); |
| 418 | 418 | $array_thirdparty = $this->get_substitutionarray_thirdparty($socobject, $outputlangs); |
| 419 | 419 | $array_propal = is_object($propal_object) ? $this->get_substitutionarray_object($propal_object, $outputlangs, 'propal') : array(); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $texte; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Function to build a document on disk using the generic odt module. |
| 201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
| 211 | 211 | { |
| 212 | - // phpcs:enable |
|
| 212 | + // phpcs:enable |
|
| 213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
| 214 | 214 | |
| 215 | 215 | if (empty($srctemplatepath)) { |