@@ -481,7 +481,7 @@ |
||
| 481 | 481 | $object->fetch($obj->rowid); |
| 482 | 482 | $object->id = $obj->rowid; |
| 483 | 483 | |
| 484 | - $action = 'anonymize'; // TODO Offer also action "delete" in setup of module |
|
| 484 | + $action = 'anonymize'; // TODO Offer also action "delete" in setup of module |
|
| 485 | 485 | |
| 486 | 486 | if ($action == 'anonymize') { |
| 487 | 487 | if ($object->isObjectUsed($obj->rowid) == 0) { // If object to clean is used |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // Parameters |
| 69 | 69 | $action = GETPOST('action', 'aZ09'); |
| 70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 72 | 72 | |
| 73 | 73 | $value = GETPOST('value', 'alpha'); |
| 74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | // Parameters |
| 69 | 69 | $action = GETPOST('action', 'aZ09'); |
| 70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
| 71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 72 | 72 | |
| 73 | 73 | $value = GETPOST('value', 'alpha'); |
| 74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | // Security: Delete string ../ or ..\ into $original_file |
| 134 | - $original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..' |
|
| 134 | + $original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..' |
|
| 135 | 135 | $original_file = str_replace('../', '/', $original_file); |
| 136 | 136 | $original_file = str_replace('..\\', '/', $original_file); |
| 137 | 137 | |
@@ -376,9 +376,9 @@ discard block |
||
| 376 | 376 | $vartmp = (empty($InfoFieldList[3]) ? '' : $InfoFieldList[3]); |
| 377 | 377 | $reg = array(); |
| 378 | 378 | if (preg_match('/^.*:(\w*)$/', $vartmp, $reg)) { |
| 379 | - $InfoFieldList[4] = $reg[1]; // take the sort field |
|
| 379 | + $InfoFieldList[4] = $reg[1]; // take the sort field |
|
| 380 | 380 | } |
| 381 | - $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field |
|
| 381 | + $InfoFieldList[3] = preg_replace('/:\w*$/', '', $vartmp); // take the filter field |
|
| 382 | 382 | |
| 383 | 383 | $classname = $InfoFieldList[0]; |
| 384 | 384 | $classpath = $InfoFieldList[1]; |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | if (!empty($objecttmp->fields)) { // For object that declare it, it is better to use declared fields (like societe, contact, ...) |
| 450 | 450 | $tmpfieldstoshow = ''; |
| 451 | 451 | foreach ($objecttmp->fields as $key => $val) { |
| 452 | - if (! (int) dol_eval($val['enabled'], 1, 1, '1')) { |
|
| 452 | + if (!(int) dol_eval($val['enabled'], 1, 1, '1')) { |
|
| 453 | 453 | continue; |
| 454 | 454 | } |
| 455 | 455 | if (!empty($val['showoncombobox'])) { |
@@ -1056,7 +1056,7 @@ discard block |
||
| 1056 | 1056 | // |
| 1057 | 1057 | } elseif ($type == 'date') { |
| 1058 | 1058 | if (!empty($value)) { |
| 1059 | - $value = dol_print_date($value, 'day'); // We suppose dates without time are always gmt (storage of course + output) |
|
| 1059 | + $value = dol_print_date($value, 'day'); // We suppose dates without time are always gmt (storage of course + output) |
|
| 1060 | 1060 | } else { |
| 1061 | 1061 | $value = ''; |
| 1062 | 1062 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | /* Use $context singleton to modify menu, */ |
| 155 | 155 | $parameters['controller'] = $context->controller; |
| 156 | 156 | |
| 157 | - $reshook = $hookmanager->executeHooks('doActions', $parameters, $context, $context->action); // Note that $action and $object may have been modified by hook |
|
| 157 | + $reshook = $hookmanager->executeHooks('doActions', $parameters, $context, $context->action); // Note that $action and $object may have been modified by hook |
|
| 158 | 158 | if ($reshook < 0) { |
| 159 | 159 | $context->setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 160 | 160 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | /* Use $context singleton to modify menu, */ |
| 178 | 178 | $parameters['controller'] = $context->controller; |
| 179 | 179 | |
| 180 | - $reshook = $hookmanager->executeHooks('PrintPageView', $parameters, $context, $context->action); // Note that $action and $object may have been modified by hook |
|
| 180 | + $reshook = $hookmanager->executeHooks('PrintPageView', $parameters, $context, $context->action); // Note that $action and $object may have been modified by hook |
|
| 181 | 181 | if ($reshook < 0) { |
| 182 | 182 | $context->setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
| 183 | 183 | } |
@@ -170,7 +170,7 @@ |
||
| 170 | 170 | $this->tplPath = realpath(__DIR__ . '/../../public/webportal/tpl'); |
| 171 | 171 | |
| 172 | 172 | $this->controller = GETPOST('controller', 'aZ09'); // for security, limited to 'aZ09' |
| 173 | - $this->action = GETPOST('action', 'aZ09');// for security, limited to 'aZ09' |
|
| 173 | + $this->action = GETPOST('action', 'aZ09'); // for security, limited to 'aZ09' |
|
| 174 | 174 | |
| 175 | 175 | if (empty($this->controller)) { |
| 176 | 176 | $this->controller = 'default'; |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | public $primaryColorHex = '#263c5c'; |
| 36 | 36 | public $primaryColorHsl = array( |
| 37 | 37 | 'h' => 216, // Hue |
| 38 | - 'l' => 42, // lightness |
|
| 39 | - 's' => 25, // Saturation |
|
| 38 | + 'l' => 42, // lightness |
|
| 39 | + 's' => 25, // Saturation |
|
| 40 | 40 | 'a' => 1 // Alfa |
| 41 | 41 | ); |
| 42 | 42 | |
@@ -171,8 +171,8 @@ |
||
| 171 | 171 | $confirm = GETPOST('confirm', 'alpha'); |
| 172 | 172 | $cancel = GETPOST('cancel', 'aZ09'); |
| 173 | 173 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'webportal' . $elementEn . 'card'; // To manage different context of search |
| 174 | - $backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
| 175 | - $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
|
| 174 | + $backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
| 175 | + $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
|
| 176 | 176 | $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha'); |
| 177 | 177 | |
| 178 | 178 | // Initialize technical objects |