Passed
Branch develop (d85e4e)
by Laurent
84:36
created
htdocs/product/stock/product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -972,7 +972,7 @@
 block discarded – undo
972 972
 			print '<td colspan="4">';
973 973
 			print $entrepotstatic->getNomUrl(1);
974 974
 			if (!empty($conf->use_javascript_ajax) && !empty($conf->productbatch->enabled) && $object->hasbatch()) {
975
-				print '<a class="collapse_batch marginleftonly" id="ent' . $entrepotstatic->id . '" href="#">';
975
+				print '<a class="collapse_batch marginleftonly" id="ent'.$entrepotstatic->id.'" href="#">';
976 976
 				print (empty($conf->global->STOCK_SHOW_ALL_BATCH_BY_DEFAULT) ? '(+)' : '(-)');
977 977
 				print '</a>';
978 978
 			}
Please login to merge, or discard this patch.
htdocs/core/modules/modWorkstation.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		$this->menu = array();
264 264
 		$r = 0;
265 265
 		// Add here entries to declare new menus
266
-		$this->menu[$r++]=array(
266
+		$this->menu[$r++] = array(
267 267
 			// '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
268 268
 			'fk_menu'=>'fk_mainmenu=mrp',
269 269
 			// This is a Left menu entry
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 			'url'=>'',
276 276
 			// Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
277 277
 			'langs'=>'mrp',
278
-			'position'=>1100+$r,
278
+			'position'=>1100 + $r,
279 279
 			// Define condition to show or hide menu entry. Use '$conf->workstation->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
280 280
 			'enabled'=>'$conf->workstation->enabled',
281 281
 			// Use 'perms'=>'$user->rights->workstation->level1->level2' if you want your menu with a permission rules
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 			// 0=Menu for internal users, 1=external users, 2=both
285 285
 			'user'=>2,
286 286
 		);
287
-		$this->menu[$r++]=array(
287
+		$this->menu[$r++] = array(
288 288
 			// '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
289 289
 			'fk_menu'=>'fk_mainmenu=mrp,fk_leftmenu=workstation_workstation',
290 290
 			// This is a Left menu entry
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 			'url'=>'/workstation/workstation_card.php?action=create',
296 296
 			// Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
297 297
 			'langs'=>'mrp',
298
-			'position'=>1100+$r,
298
+			'position'=>1100 + $r,
299 299
 			// Define condition to show or hide menu entry. Use '$conf->workstation->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
300 300
 			'enabled'=>'$conf->workstation->enabled',
301 301
 			// Use 'perms'=>'$user->rights->workstation->level1->level2' if you want your menu with a permission rules
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 			// 0=Menu for internal users, 1=external users, 2=both
305 305
 			'user'=>2
306 306
 		);
307
-		$this->menu[$r++]=array(
307
+		$this->menu[$r++] = array(
308 308
 			// '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
309 309
 			'fk_menu'=>'fk_mainmenu=mrp,fk_leftmenu=workstation_workstation',
310 310
 			// This is a Left menu entry
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 			'url'=>'/workstation/workstation_list.php',
316 316
 			// Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
317 317
 			'langs'=>'mrp',
318
-			'position'=>1101+$r,
318
+			'position'=>1101 + $r,
319 319
 			// Define condition to show or hide menu entry. Use '$conf->workstation->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
320 320
 			'enabled'=>'$conf->workstation->enabled',
321 321
 			// Use 'perms'=>'$user->rights->workstation->level1->level2' if you want your menu with a permission rules
Please login to merge, or discard this patch.
htdocs/expensereport/list.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
 
81 81
 
82 82
 // Load variable for pagination
83
-$limit 		= GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
83
+$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
84 84
 $sortfield	= GETPOST('sortfield', 'aZ09comma');
85 85
 $sortorder	= GETPOST('sortorder', 'aZ09comma');
86
-$page 		= GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
86
+$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
87 87
 if (empty($page) || $page == -1) {
88 88
 	$page = 0;
89 89
 }     // If $page is not defined, or '' or -1
@@ -98,34 +98,34 @@  discard block
 block discarded – undo
98 98
 }
99 99
 
100 100
 
101
-$sall			= trim((GETPOST('search_all', 'alphanohtml') != '') ?GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
101
+$sall = trim((GETPOST('search_all', 'alphanohtml') != '') ?GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
102 102
 
103 103
 $search_ref			= GETPOST('search_ref', 'alpha');
104 104
 $search_user		= GETPOST('search_user', 'int');
105
-$search_amount_ht	= GETPOST('search_amount_ht', 'alpha');
105
+$search_amount_ht = GETPOST('search_amount_ht', 'alpha');
106 106
 $search_amount_vat	= GETPOST('search_amount_vat', 'alpha');
107 107
 $search_amount_ttc	= GETPOST('search_amount_ttc', 'alpha');
108
-$search_status		= (GETPOST('search_status', 'intcomma') != '' ?GETPOST('search_status', 'intcomma') : GETPOST('statut', 'intcomma'));
108
+$search_status = (GETPOST('search_status', 'intcomma') != '' ?GETPOST('search_status', 'intcomma') : GETPOST('statut', 'intcomma'));
109 109
 
110
-$search_date_startday		= GETPOST('search_date_startday', 'int');
110
+$search_date_startday = GETPOST('search_date_startday', 'int');
111 111
 $search_date_startmonth		= GETPOST('search_date_startmonth', 'int');
112
-$search_date_startyear		= GETPOST('search_date_startyear', 'int');
112
+$search_date_startyear = GETPOST('search_date_startyear', 'int');
113 113
 $search_date_startendday	= GETPOST('search_date_startendday', 'int');
114
-$search_date_startendmonth	= GETPOST('search_date_startendmonth', 'int');
115
-$search_date_startendyear	= GETPOST('search_date_startendyear', 'int');
116
-$search_date_start			= dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
114
+$search_date_startendmonth = GETPOST('search_date_startendmonth', 'int');
115
+$search_date_startendyear = GETPOST('search_date_startendyear', 'int');
116
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
117 117
 $search_date_startend		= dol_mktime(23, 59, 59, $search_date_startendmonth, $search_date_startendday, $search_date_startendyear);
118 118
 
119 119
 $search_date_endday			= GETPOST('search_date_endday', 'int');
120 120
 $search_date_endmonth		= GETPOST('search_date_endmonth', 'int');
121 121
 $search_date_endyear		= GETPOST('search_date_endyear', 'int');
122
-$search_date_endendday		= GETPOST('search_date_endendday', 'int');
122
+$search_date_endendday = GETPOST('search_date_endendday', 'int');
123 123
 $search_date_endendmonth	= GETPOST('search_date_endendmonth', 'int');
124 124
 $search_date_endendyear		= GETPOST('search_date_endendyear', 'int');
125
-$search_date_end			= dol_mktime(0, 0, 0, $search_date_endmonth, $search_date_endday, $search_date_endyear);	// Use tzserver
126
-$search_date_endend			= dol_mktime(23, 59, 59, $search_date_endendmonth, $search_date_endendday, $search_date_endendyear);
125
+$search_date_end = dol_mktime(0, 0, 0, $search_date_endmonth, $search_date_endday, $search_date_endyear); // Use tzserver
126
+$search_date_endend = dol_mktime(23, 59, 59, $search_date_endendmonth, $search_date_endendday, $search_date_endendyear);
127 127
 
128
-$optioncss    = GETPOST('optioncss', 'alpha');
128
+$optioncss = GETPOST('optioncss', 'alpha');
129 129
 
130 130
 if ($search_status == '') {
131 131
 	$search_status = -1;
Please login to merge, or discard this patch.
htdocs/knowledgemanagement/knowledgerecord_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
 	print '<table class="border centpercent tableforfield">'."\n";
328 328
 
329 329
 	// Common attributes
330
-	$keyforbreak='fk_c_ticket_category';	// We change column just before this field
330
+	$keyforbreak = 'fk_c_ticket_category'; // We change column just before this field
331 331
 	//unset($object->fields['fk_project']);				// Hide field already shown in banner
332 332
 	//unset($object->fields['fk_soc']);					// Hide field already shown in banner
333 333
 	include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_view.tpl.php';
Please login to merge, or discard this patch.
htdocs/ticket/class/cticketcategory.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 	/**
99 99
 	 * @var array  Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
100 100
 	 */
101
-	public $fields=array(
101
+	public $fields = array(
102 102
 		'rowid' =>array('type'=>'integer', 'label'=>'TechnicalID', 'enabled'=>1, 'visible'=>-1, 'notnull'=>1, 'position'=>10),
103 103
 		'entity' =>array('type'=>'integer', 'label'=>'Entity', 'default'=>1, 'enabled'=>1, 'visible'=>-2, 'position'=>15, 'index'=>1),
104 104
 		'code' =>array('type'=>'varchar(32)', 'label'=>'Code', 'enabled'=>1, 'visible'=>-1, 'notnull'=>1, 'position'=>20),
Please login to merge, or discard this patch.
htdocs/mrp/class/api_mos.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 
356 356
 		if (!empty($arraytoconsume) && !empty($arraytoproduce)) {
357 357
 			$pos = 0;
358
-			$arrayofarrayname = array("arraytoconsume","arraytoproduce");
358
+			$arrayofarrayname = array("arraytoconsume", "arraytoproduce");
359 359
 			foreach ($arrayofarrayname as $arrayname) {
360 360
 				foreach ($$arrayname as $value) {
361 361
 					$tmpproduct = new Product($this->db);
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 					if (empty($value["qty"])) {
367 367
 						throw new RestException(500, "Field qty required in ".$arrayname);
368 368
 					}
369
-					if ($value["qty"]!=0) {
369
+					if ($value["qty"] != 0) {
370 370
 						$qtytoprocess = $value["qty"];
371 371
 						if (isset($value["fk_warehouse"])) {	// If there is a warehouse to set
372 372
 							if (!($value["fk_warehouse"] > 0)) {	// If there is no warehouse set.
Please login to merge, or discard this patch.
htdocs/compta/cashcontrol/cashcontrol_list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
 // Default sort order (if not yet defined by previous GETPOST)
128 128
 if (!$sortfield) {
129
-	reset($object->fields);					// Reset is required to avoid key() to return null.
129
+	reset($object->fields); // Reset is required to avoid key() to return null.
130 130
 	$sortfield = "t.".key($object->fields); // Set here default search field. By default 1st field in definition.
131 131
 }
132 132
 if (!$sortorder) {
@@ -303,13 +303,13 @@  discard block
 block discarded – undo
303 303
 		}
304 304
 	} else {
305 305
 		if (preg_match('/(_dtstart|_dtend)$/', $key) && $search[$key] != '') {
306
-			$columnName=preg_replace('/(_dtstart|_dtend)$/', '', $key);
306
+			$columnName = preg_replace('/(_dtstart|_dtend)$/', '', $key);
307 307
 			if (preg_match('/^(date|timestamp|datetime)/', $object->fields[$columnName]['type'])) {
308 308
 				if (preg_match('/_dtstart$/', $key)) {
309
-					$sql .= " AND t." . $columnName . " >= '" . $db->idate($search[$key]) . "'";
309
+					$sql .= " AND t.".$columnName." >= '".$db->idate($search[$key])."'";
310 310
 				}
311 311
 				if (preg_match('/_dtend$/', $key)) {
312
-					$sql .= " AND t." . $columnName . " <= '" . $db->idate($search[$key]) . "'";
312
+					$sql .= " AND t.".$columnName." <= '".$db->idate($search[$key])."'";
313 313
 				}
314 314
 			}
315 315
 		}
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
 		print '<td class="liste_titre'.($cssforfield ? ' '.$cssforfield : '').'">';
518 518
 		if (!empty($val['arrayofkeyval']) && is_array($val['arrayofkeyval'])) {
519 519
 			print $form->selectarray('search_'.$key, $val['arrayofkeyval'], (isset($search[$key]) ? $search[$key] : ''), $val['notnull'], 0, 0, '', 1, 0, 0, '', 'maxwidth100', 1);
520
-		} elseif ((strpos($val['type'], 'integer:') === 0) || (strpos($val['type'], 'sellist:')=== 0)) {
520
+		} elseif ((strpos($val['type'], 'integer:') === 0) || (strpos($val['type'], 'sellist:') === 0)) {
521 521
 			print $object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] : ''), '', '', 'search_', 'maxwidth125', 1);
522 522
 		} elseif (!preg_match('/^(date|timestamp|datetime)/', $val['type'])) {
523 523
 			print '<input type="text" class="flat maxwidth75" name="search_'.$key.'" value="'.dol_escape_htmltag(isset($search[$key]) ? $search[$key] : '').'">';
Please login to merge, or discard this patch.
htdocs/core/modules/modKnowledgeManagement.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 		*/
302 302
 		/* END MODULEBUILDER TOPMENU */
303 303
 
304
-		$this->menu[$r++]=array(
304
+		$this->menu[$r++] = array(
305 305
 			// '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
306 306
 			'fk_menu'=>'fk_mainmenu=ticket',
307 307
 			// This is a Left menu entry
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 			// 0=Menu for internal users, 1=external users, 2=both
323 323
 			'user'=>2,
324 324
 		);
325
-		$this->menu[$r++]=array(
325
+		$this->menu[$r++] = array(
326 326
 			// '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
327 327
 			'fk_menu'=>'fk_mainmenu=ticket,fk_leftmenu=knowledgemanagement_knowledgerecord',
328 328
 			// This is a Left menu entry
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 			// 0=Menu for internal users, 1=external users, 2=both
343 343
 			'user'=>2,
344 344
 		);
345
-		$this->menu[$r++]=array(
345
+		$this->menu[$r++] = array(
346 346
 			// '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
347 347
 			'fk_menu'=>'fk_mainmenu=ticket,fk_leftmenu=knowledgemanagement_knowledgerecord',
348 348
 			// This is a Left menu entry
Please login to merge, or discard this patch.
htdocs/core/modules/modEventOrganization.class.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 		// A condition to hide module
115 115
 		$this->hidden = false;
116 116
 		// List of module class names as string that must be enabled if this module is enabled. Example: array('always1'=>'modModuleToEnable1','always2'=>'modModuleToEnable2', 'FR1'=>'modModuleToEnableFR'...)
117
-		$this->depends = array('modProjet','modCategorie');
117
+		$this->depends = array('modProjet', 'modCategorie');
118 118
 		$this->requiredby = array(); // List of module class names as string to disable if this one is disabled. Example: array('modModuleToDisable1', ...)
119 119
 		$this->conflictwith = array(); // List of module class names as string this module is in conflict with. Example: array('modModuleToDisable1', ...)
120 120
 
@@ -249,83 +249,83 @@  discard block
 block discarded – undo
249 249
 		/* BEGIN MODULEBUILDER TOPMENU */
250 250
 		/* END MODULEBUILDER TOPMENU */
251 251
 		/* BEGIN MODULEBUILDER LEFTMENU CONFERENCEORBOOTH*/
252
-		$this->menu[$r++]=array(
253
-			'fk_menu'=>'fk_mainmenu=project',	    // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
254
-			'type'=>'left',			                // This is a Left menu entry
252
+		$this->menu[$r++] = array(
253
+			'fk_menu'=>'fk_mainmenu=project', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
254
+			'type'=>'left', // This is a Left menu entry
255 255
 			'titre'=>'EventOrganizationMenuLeft',
256 256
 			'prefix' => img_picto('', 'eventorganization', 'class="paddingright pictofixedwidth"'),
257 257
 			'mainmenu'=>'project',
258 258
 			'leftmenu'=>'eventorganization',
259 259
 			'url'=>'',
260
-			'langs'=>'eventorganization',	        // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
261
-			'position'=>1000+$r,
262
-			'enabled'=>'$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
263
-			'perms'=>'$user->rights->eventorganization->read',			                // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
260
+			'langs'=>'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
261
+			'position'=>1000 + $r,
262
+			'enabled'=>'$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
263
+			'perms'=>'$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
264 264
 			'target'=>'',
265
-			'user'=>2,				                // 0=Menu for internal users, 1=external users, 2=both
265
+			'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
266 266
 		);
267
-		$this->menu[$r++]=array(
268
-			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganization',	    // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
269
-			'type'=>'left',			                // This is a Left menu entry
267
+		$this->menu[$r++] = array(
268
+			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganization', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
269
+			'type'=>'left', // This is a Left menu entry
270 270
 			'titre'=>'List',
271 271
 			'url'=>'/projet/list.php?search_usage_event_organization=1&search_status=99&mainmenu=project&contextpage=organizedevents',
272
-			'langs'=>'eventorganization@eventorganization',	        // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
273
-			'position'=>1000+$r,
274
-			'enabled'=>'$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
275
-			'perms'=>'$user->rights->eventorganization->read',			                // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
272
+			'langs'=>'eventorganization@eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
273
+			'position'=>1000 + $r,
274
+			'enabled'=>'$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
275
+			'perms'=>'$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
276 276
 			'target'=>'',
277
-			'user'=>2,				                // 0=Menu for internal users, 1=external users, 2=both
277
+			'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
278 278
 		);
279
-		$this->menu[$r++]=array(
280
-			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganization',	    // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
281
-			'type'=>'left',			                // This is a Left menu entry
279
+		$this->menu[$r++] = array(
280
+			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganization', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
281
+			'type'=>'left', // This is a Left menu entry
282 282
 			'titre'=>'New',
283 283
 			'url'=>'/projet/card.php?leftmenu=projects&action=create&usage_organize_event=1',
284
-			'langs'=>'eventorganization@eventorganization',	        // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
285
-			'position'=>1000+$r,
286
-			'enabled'=>'$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
287
-			'perms'=>'$user->rights->eventorganization->write',			                // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
284
+			'langs'=>'eventorganization@eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
285
+			'position'=>1000 + $r,
286
+			'enabled'=>'$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
287
+			'perms'=>'$user->rights->eventorganization->write', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
288 288
 			'target'=>'',
289
-			'user'=>2,				                // 0=Menu for internal users, 1=external users, 2=both
289
+			'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
290 290
 		);
291
-		$this->menu[$r++]=array(
292
-			'fk_menu'=>'fk_mainmenu=project',	    // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
293
-			'type'=>'left',			                // This is a Left menu entry
291
+		$this->menu[$r++] = array(
292
+			'fk_menu'=>'fk_mainmenu=project', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
293
+			'type'=>'left', // This is a Left menu entry
294 294
 			'titre'=>'ConferenceOrBooth',
295 295
 			'prefix' => img_picto('', 'conferenceorbooth', 'class="paddingright pictofixedwidth"'),
296 296
 			'mainmenu'=>'project',
297 297
 			'leftmenu'=>'eventorganizationconforbooth',
298 298
 			'url'=>'',
299
-			'langs'=>'eventorganization',	        // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
300
-			'position'=>1000+$r,
301
-			'enabled'=>'$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
302
-			'perms'=>'$user->rights->eventorganization->read',			                // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
299
+			'langs'=>'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
300
+			'position'=>1000 + $r,
301
+			'enabled'=>'$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
302
+			'perms'=>'$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
303 303
 			'target'=>'',
304
-			'user'=>2,				                // 0=Menu for internal users, 1=external users, 2=both
304
+			'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
305 305
 		);
306
-		$this->menu[$r++]=array(
307
-			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth',	    // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
308
-			'type'=>'left',			                // This is a Left menu entry
306
+		$this->menu[$r++] = array(
307
+			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
308
+			'type'=>'left', // This is a Left menu entry
309 309
 			'titre'=>'List',
310 310
 			'url'=>'/eventorganization/conferenceorbooth_list.php?mainmenu=project',
311
-			'langs'=>'eventorganization',	        // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
312
-			'position'=>1000+$r,
313
-			'enabled'=>'$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
314
-			'perms'=>'$user->rights->eventorganization->read',			                // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
311
+			'langs'=>'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
312
+			'position'=>1000 + $r,
313
+			'enabled'=>'$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
314
+			'perms'=>'$user->rights->eventorganization->read', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
315 315
 			'target'=>'',
316
-			'user'=>2,				                // 0=Menu for internal users, 1=external users, 2=both
316
+			'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
317 317
 		);
318
-		$this->menu[$r++]=array(
319
-			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth',	    // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
320
-			'type'=>'left',			                // This is a Left menu entry
318
+		$this->menu[$r++] = array(
319
+			'fk_menu'=>'fk_mainmenu=project,fk_leftmenu=eventorganizationconforbooth', // '' if this is a top menu. For left menu, use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
320
+			'type'=>'left', // This is a Left menu entry
321 321
 			'titre'=>'New',
322 322
 			'url'=>'/eventorganization/conferenceorbooth_card.php?leftmenu=projects&action=create',
323
-			'langs'=>'eventorganization',	        // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
324
-			'position'=>1000+$r,
325
-			'enabled'=>'$conf->eventorganization->enabled',  // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
326
-			'perms'=>'$user->rights->eventorganization->write',			                // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
323
+			'langs'=>'eventorganization', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
324
+			'position'=>1000 + $r,
325
+			'enabled'=>'$conf->eventorganization->enabled', // Define condition to show or hide menu entry. Use '$conf->eventorganization->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
326
+			'perms'=>'$user->rights->eventorganization->write', // Use 'perms'=>'$user->rights->eventorganization->level1->level2' if you want your menu with a permission rules
327 327
 			'target'=>'',
328
-			'user'=>2,				                // 0=Menu for internal users, 1=external users, 2=both
328
+			'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
329 329
 		);
330 330
 		/* END MODULEBUILDER LEFTMENU CONFERENCEORBOOTH */
331 331
 		// Exports profiles provided by this module
Please login to merge, or discard this patch.