Completed
Branch develop (c7eb63)
by
unknown
22:57
created
htdocs/admin/mails.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 	print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_SENDMODE").'</td><td>';
390 390
 
391 391
 	// SuperAdministrator access only
392
-	if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
392
+	if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
393 393
 		print $form->selectarray('MAIN_MAIL_SENDMODE', $listofmethods, getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'));
394 394
 	} else {
395 395
 		$text = $listofmethods[getDolGlobalString('MAIN_MAIL_SENDMODE')];
@@ -517,11 +517,11 @@  discard block
 block discarded – undo
517 517
 		print '</td><td>';
518 518
 		// SuperAdministrator access only
519 519
 		if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
520
-			print '<input class="flat" type="password" name="MAIN_MAIL_SMTPS_PW" size="32" value="' . htmlspecialchars($mainsmtppw, ENT_COMPAT, 'UTF-8') . '" autocomplete="off">';
520
+			print '<input class="flat" type="password" name="MAIN_MAIL_SMTPS_PW" size="32" value="'.htmlspecialchars($mainsmtppw, ENT_COMPAT, 'UTF-8').'" autocomplete="off">';
521 521
 		} else {
522 522
 			$htmltext = $langs->trans("ContactSuperAdminForChange");
523 523
 			print $form->textwithpicto(getDolGlobalString('MAIN_MAIL_SMTPS_PW'), $htmltext, 1, 'superadmin');
524
-			print '<input type="hidden" name="MAIN_MAIL_SMTPS_PW" value="' . htmlspecialchars($mainsmtppw, ENT_COMPAT, 'UTF-8') . '">';
524
+			print '<input type="hidden" name="MAIN_MAIL_SMTPS_PW" value="'.htmlspecialchars($mainsmtppw, ENT_COMPAT, 'UTF-8').'">';
525 525
 		}
526 526
 		print '</td></tr>';
527 527
 	}
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 		print '<tr class="oddeven smtp_oauth_service"><td>'.$langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE").'</td><td>';
532 532
 
533 533
 		// SuperAdministrator access only
534
-		if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
534
+		if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
535 535
 			print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE', $oauthservices, getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE'));
536 536
 		} else {
537 537
 			$text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE')];
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 			}
541 541
 			$htmltext = $langs->trans("ContactSuperAdminForChange");
542 542
 			print $form->textwithpicto($text, $htmltext, 1, 'superadmin');
543
-			print '<input type="hidden" name="MAIN_MAIL_SMTPS_OAUTH_SERVICE" value="' . getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE').'">';
543
+			print '<input type="hidden" name="MAIN_MAIL_SMTPS_OAUTH_SERVICE" value="'.getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE').'">';
544 544
 		}
545 545
 		print '</td></tr>';
546 546
 	}
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
 
744 744
 		// SMTPS ID
745 745
 		if (in_array(getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'), array('smtps', 'swiftmailer'))) {
746
-			print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_SMTPS_ID").'</td><td>' . getDolGlobalString('MAIN_MAIL_SMTPS_ID').'</td></tr>';
746
+			print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_SMTPS_ID").'</td><td>'.getDolGlobalString('MAIN_MAIL_SMTPS_ID').'</td></tr>';
747 747
 		}
748 748
 
749 749
 		// SMTPS PW
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
 	print $langs->trans("MAIN_MAIL_EMAIL_FROM", ini_get('sendmail_from') ? ini_get('sendmail_from') : $langs->transnoentities("Undefined"));
907 907
 	print ' '.$help;
908 908
 	print '</td>';
909
-	print '<td>' . getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
909
+	print '<td>'.getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
910 910
 	if (!getDolGlobalString('MAIN_MAIL_EMAIL_FROM')) {
911 911
 		print img_warning($langs->trans("Mandatory"));
912 912
 	} elseif (!isValidEmail(getDolGlobalString('MAIN_MAIL_EMAIL_FROM'))) {
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
 						if (!empty($tmpresult['content'])) {
1070 1070
 							$iptoshow = $tmpresult['content'];
1071 1071
 						} else {
1072
-							$iptoshow = '';	// Failed to get IP
1072
+							$iptoshow = ''; // Failed to get IP
1073 1073
 						}
1074 1074
 					}
1075 1075
 					$ipstoshow .= ($ipstoshow ? ', ' : '').trim($iptoshow);
@@ -1181,8 +1181,8 @@  discard block
 block discarded – undo
1181 1181
 		$formmail->withtopicreadonly = 0;
1182 1182
 		$formmail->withfile = 2;
1183 1183
 
1184
-		$formmail->withlayout = 'emailing';		// Note: MAIN_EMAIL_USE_LAYOUT must be set
1185
-		$formmail->withaiprompt = ($action == 'testhtml' ? 'html' : 'text');	// Note: Module AI must be enabled
1184
+		$formmail->withlayout = 'emailing'; // Note: MAIN_EMAIL_USE_LAYOUT must be set
1185
+		$formmail->withaiprompt = ($action == 'testhtml' ? 'html' : 'text'); // Note: Module AI must be enabled
1186 1186
 
1187 1187
 		$formmail->withbody = (GETPOSTISSET('message') ? GETPOST('message', 'restricthtml') : ($action == 'testhtml' ? $langs->transnoentities("PredefinedMailTestHtml") : $langs->transnoentities("PredefinedMailTest")));
1188 1188
 		$formmail->withbodyreadonly = 0;
Please login to merge, or discard this patch.
htdocs/core/modules/modStock.class.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 */
45 45
 	public function __construct($db)
46 46
 	{
47
-		global $conf, $langs;	// $conf is used by inc.php
47
+		global $conf, $langs; // $conf is used by inc.php
48 48
 
49 49
 		$this->db = $db;
50 50
 		$this->numero = 52;
@@ -233,8 +233,8 @@  discard block
 block discarded – undo
233 233
 			'd.code_departement' => 'List:c_departements:code_departement:code_departement:', 'c.code' => 'List:c_country:code:code:',
234 234
 			'e.phone' => 'Text', 'e.fax' => 'Text', 'e.statut' => 'Text', 'pe.rowid' => 'List:entrepot:ref:rowid:stock', 'pe.ref' => 'Text'
235 235
 		);
236
-		$this->export_entities_array[$r] = array();	// We define here only fields that use another icon that the one defined into export_icon
237
-		$this->export_aggregate_array[$r] = array();	// TODO Not used yet
236
+		$this->export_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into export_icon
237
+		$this->export_aggregate_array[$r] = array(); // TODO Not used yet
238 238
 		$keyforselect = 'warehouse';
239 239
 		$keyforelement = 'warehouse';
240 240
 		$keyforaliasextra = 'extra';
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 			'p.datec' => 'product', 'p.tms' => 'product', 'p.pmp' => 'product', 'p.cost_price' => 'product',
282 282
 			'ps.reel' => 'stock',
283 283
 			'p.seuil_stock_alerte' => 'product', 'p.barcode' => 'product', 'bt.libelle' => 'product',
284
-		);	// We define here only fields that use another icon that the one defined into export_icon
284
+		); // We define here only fields that use another icon that the one defined into export_icon
285 285
 		if (isModEnabled('barcode')) {
286 286
 			$this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p.barcode' => 'product'));
287 287
 		}
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 				'p.datec' => 'product', 'p.tms' => 'product', 'p.pmp' => 'product', 'p.cost_price' => 'product', 'lcpn.label'=>'product',
341 341
 				'pb.rowid' => 'batch', 'pb.batch' => 'batch', 'pb.qty' => 'batch', 'none.dateLastMovement' => 'movement',
342 342
 				'pl.eatby' => 'batch', 'pl.sellby' => 'batch'
343
-			);	// We define here only fields that use another icon that the one defined into export_icon
343
+			); // We define here only fields that use another icon that the one defined into export_icon
344 344
 			$this->export_special_array[$r] = array(
345 345
 				'none.dateLastMovement'=>array('rule'=>'compute', 'classfile'=>'/product/stock/class/mouvementstock.class.php', 'class'=>'MouvementStock', 'method'=>'getDateLastMovementProductBatch', 'method_params'=>['e_rowid', 'p_rowid', 'pb_batch']),
346 346
 			);
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 			'e.rowid' => 'warehouse', 'e.ref' => 'warehouse', 'e.description' => 'warehouse', 'e.lieu' => 'warehouse', 'e.address' => 'warehouse', 'e.zip' => 'warehouse', 'e.town' => 'warehouse',
395 395
 			'p.rowid' => "product", 'p.ref' => "product", 'p.fk_product_type' => "product", 'p.label' => "product", 'p.description' => "product", 'p.note' => "product",
396 396
 			'p.price' => "product", 'p.tva_tx' => 'product', 'p.tosell' => "product", 'p.tobuy' => "product", 'p.duration' => "product", 'p.datec' => 'product', 'p.tms' => 'product'
397
-		);	// We define here only fields that use another icon that the one defined into export_icon
397
+		); // We define here only fields that use another icon that the one defined into export_icon
398 398
 		if (isModEnabled('productbatch')) {
399 399
 			$this->export_fields_array[$r]['sm.batch'] = 'Batch';
400 400
 			$this->export_TypeFields_array[$r]['sm.batch'] = 'Text';
@@ -442,10 +442,10 @@  discard block
 block discarded – undo
442 442
 			$this->export_TypeFields_array[$r] = array_merge($this->export_TypeFields_array[$r], array('p.barcode' => 'Text'));
443 443
 		}
444 444
 		$this->export_entities_array[$r] = array(
445
-			'id.qty_view' => 'inventory_line', 'id.qty_stock' => 'inventory_line', 'id.batch' => 'inventory_line', 'id.qty_regulated' => 'inventory_line', 'id.fk_warehouse' => 'inventory_line', 'id.rowid' => 'inventory_line',	'e.rowid' => 'warehouse', 'e.ref' => 'warehouse', 'e.description' => 'warehouse', 'e.lieu' => 'warehouse', 'e.address' => 'warehouse', 'e.zip' => 'warehouse', 'e.town' => 'warehouse',
445
+			'id.qty_view' => 'inventory_line', 'id.qty_stock' => 'inventory_line', 'id.batch' => 'inventory_line', 'id.qty_regulated' => 'inventory_line', 'id.fk_warehouse' => 'inventory_line', 'id.rowid' => 'inventory_line', 'e.rowid' => 'warehouse', 'e.ref' => 'warehouse', 'e.description' => 'warehouse', 'e.lieu' => 'warehouse', 'e.address' => 'warehouse', 'e.zip' => 'warehouse', 'e.town' => 'warehouse',
446 446
 			'p.rowid' => "product", 'p.ref' => "product", 'p.fk_product_type' => "product", 'p.label' => "product", 'p.description' => "product", 'p.note' => "product",
447 447
 			'p.barcode' => "product", 'p.price' => "product", 'p.tva_tx' => 'product', 'p.tosell' => "product", 'p.tobuy' => "product", 'p.duration' => "product", 'p.datec' => 'product', 'p.tms' => 'product'
448
-		);	// We define here only fields that use another icon that the one defined into export_icon
448
+		); // We define here only fields that use another icon that the one defined into export_icon
449 449
 		if (isModEnabled('productbatch')) {
450 450
 			$this->export_fields_array[$r]['id.batch'] = 'Batch';
451 451
 			$this->export_TypeFields_array[$r]['id.batch'] = 'Text';
Please login to merge, or discard this patch.