@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | } |
970 | 970 | } |
971 | 971 | |
972 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
972 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
973 | 973 | /** |
974 | 974 | * Initialize this->userassigned array with list of id of user assigned to event |
975 | 975 | * |
@@ -978,7 +978,7 @@ discard block |
||
978 | 978 | */ |
979 | 979 | public function fetch_userassigned($override = true) |
980 | 980 | { |
981 | - // phpcs:enable |
|
981 | + // phpcs:enable |
|
982 | 982 | $sql = "SELECT fk_actioncomm, element_type, fk_element, answer_status, mandatory, transparency"; |
983 | 983 | $sql .= " FROM " . MAIN_DB_PREFIX . "actioncomm_resources"; |
984 | 984 | $sql .= " WHERE element_type = 'user' AND fk_actioncomm = " . ((int) $this->id); |
@@ -996,9 +996,9 @@ discard block |
||
996 | 996 | while ($obj = $this->db->fetch_object($resql2)) { |
997 | 997 | if ($obj->fk_element > 0) { |
998 | 998 | $this->userassigned[$obj->fk_element] = array('id' => $obj->fk_element, |
999 | - 'mandatory' => $obj->mandatory, |
|
1000 | - 'answer_status' => $obj->answer_status, |
|
1001 | - 'transparency' => $obj->transparency); |
|
999 | + 'mandatory' => $obj->mandatory, |
|
1000 | + 'answer_status' => $obj->answer_status, |
|
1001 | + 'transparency' => $obj->transparency); |
|
1002 | 1002 | } |
1003 | 1003 | |
1004 | 1004 | if ($override === true) { |
@@ -1389,7 +1389,7 @@ discard block |
||
1389 | 1389 | } |
1390 | 1390 | } |
1391 | 1391 | |
1392 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1392 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1393 | 1393 | /** |
1394 | 1394 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
1395 | 1395 | * |
@@ -1399,7 +1399,7 @@ discard block |
||
1399 | 1399 | */ |
1400 | 1400 | public function load_board($user, $load_state_board = 0) |
1401 | 1401 | { |
1402 | - // phpcs:enable |
|
1402 | + // phpcs:enable |
|
1403 | 1403 | global $conf, $langs; |
1404 | 1404 | |
1405 | 1405 | if (empty($load_state_board)) { |
@@ -1526,7 +1526,7 @@ discard block |
||
1526 | 1526 | return $this->LibStatut($this->percentage, $mode, $hidenastatus, $this->datep); |
1527 | 1527 | } |
1528 | 1528 | |
1529 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1529 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1530 | 1530 | /** |
1531 | 1531 | * Return label of action status |
1532 | 1532 | * |
@@ -1538,7 +1538,7 @@ discard block |
||
1538 | 1538 | */ |
1539 | 1539 | public function LibStatut($percent, $mode, $hidenastatus = 0, $datestart = '') |
1540 | 1540 | { |
1541 | - // phpcs:enable |
|
1541 | + // phpcs:enable |
|
1542 | 1542 | global $langs; |
1543 | 1543 | |
1544 | 1544 | $labelStatus = $langs->transnoentitiesnoconv('StatusNotApplicable'); |
@@ -1942,7 +1942,7 @@ discard block |
||
1942 | 1942 | return 1; |
1943 | 1943 | } |
1944 | 1944 | |
1945 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1945 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1946 | 1946 | /** |
1947 | 1947 | * Export events from database into a cal file. |
1948 | 1948 | * |
@@ -1958,7 +1958,7 @@ discard block |
||
1958 | 1958 | { |
1959 | 1959 | global $hookmanager; |
1960 | 1960 | |
1961 | - // phpcs:enable |
|
1961 | + // phpcs:enable |
|
1962 | 1962 | global $conf, $langs, $dolibarr_main_url_root, $mysoc; |
1963 | 1963 | |
1964 | 1964 | require_once DOL_DOCUMENT_ROOT . "/core/lib/xcal.lib.php"; |
@@ -565,8 +565,8 @@ discard block |
||
565 | 565 | $sql .= "ip"; |
566 | 566 | $sql .= ") VALUES ("; |
567 | 567 | $sql .= "'(PROV)', "; |
568 | - $sql .= "'" . $this->db->idate($now) . "', "; // date creation |
|
569 | - $sql .= "'" . $this->db->idate($this->datep) . "', "; // date start event |
|
568 | + $sql .= "'" . $this->db->idate($now) . "', "; // date creation |
|
569 | + $sql .= "'" . $this->db->idate($this->datep) . "', "; // date start event |
|
570 | 570 | $sql .= (strval($this->datef) != '' ? "'" . $this->db->idate($this->datef) . "'" : "null") . ", "; |
571 | 571 | $sql .= ((isset($this->durationp) && $this->durationp >= 0 && $this->durationp != '') ? "'" . $this->db->escape($this->durationp) . "'" : "null") . ", "; // deprecated |
572 | 572 | $sql .= (isset($this->type_id) ? $this->type_id : "null") . ","; |
@@ -1335,7 +1335,7 @@ discard block |
||
1335 | 1335 | $sql .= " FROM " . MAIN_DB_PREFIX . "actioncomm as a"; |
1336 | 1336 | // Fields from hook |
1337 | 1337 | $parameters = array('sql' => &$sql, 'socid' => $socid, 'fk_element' => $fk_element, 'elementtype' => $elementtype); |
1338 | - $reshook = $hookmanager->executeHooks('getActionsListFrom', $parameters); // Note that $action and $object may have been modified by hook |
|
1338 | + $reshook = $hookmanager->executeHooks('getActionsListFrom', $parameters); // Note that $action and $object may have been modified by hook |
|
1339 | 1339 | if (!empty($hookmanager->resPrint)) { |
1340 | 1340 | $sql .= $hookmanager->resPrint; |
1341 | 1341 | } |
@@ -1359,7 +1359,7 @@ discard block |
||
1359 | 1359 | } |
1360 | 1360 | // Fields where hook |
1361 | 1361 | $parameters = array('sql' => &$sql, 'socid' => $socid, 'fk_element' => $fk_element, 'elementtype' => $elementtype); |
1362 | - $reshook = $hookmanager->executeHooks('getActionsListWhere', $parameters); // Note that $action and $object may have been modified by hook |
|
1362 | + $reshook = $hookmanager->executeHooks('getActionsListWhere', $parameters); // Note that $action and $object may have been modified by hook |
|
1363 | 1363 | if (!empty($hookmanager->resPrint)) { |
1364 | 1364 | $sql .= $hookmanager->resPrint; |
1365 | 1365 | } |
@@ -1436,7 +1436,7 @@ discard block |
||
1436 | 1436 | |
1437 | 1437 | $resql = $this->db->query($sql); |
1438 | 1438 | if ($resql) { |
1439 | - $response = null; // Ensure the variable is defined |
|
1439 | + $response = null; // Ensure the variable is defined |
|
1440 | 1440 | if (empty($load_state_board)) { |
1441 | 1441 | $agenda_static = new ActionComm($this->db); |
1442 | 1442 | $response = new WorkboardResponse(); |
@@ -1740,8 +1740,8 @@ discard block |
||
1740 | 1740 | } |
1741 | 1741 | if (!empty($this->note_private)) { |
1742 | 1742 | $tooltip .= '<br><br><b>' . $langs->trans('Description') . ':</b><br>'; |
1743 | - $texttoshow = dolGetFirstLineOfText($this->note_private, 8); // Try to limit length of content |
|
1744 | - $tooltip .= '<div class="tenlinesmax">'; // Restrict height of content into the tooltip |
|
1743 | + $texttoshow = dolGetFirstLineOfText($this->note_private, 8); // Try to limit length of content |
|
1744 | + $tooltip .= '<div class="tenlinesmax">'; // Restrict height of content into the tooltip |
|
1745 | 1745 | $tooltip .= (dol_textishtml($texttoshow) ? str_replace(array("\r", "\n"), "", $texttoshow) : str_replace(array("\r", "\n"), '<br>', $texttoshow)); |
1746 | 1746 | $tooltip .= '</div>'; |
1747 | 1747 | } |
@@ -2625,7 +2625,7 @@ discard block |
||
2625 | 2625 | //Select all action comm reminders |
2626 | 2626 | $sql = "SELECT rowid as id FROM " . MAIN_DB_PREFIX . "actioncomm_reminder"; |
2627 | 2627 | $sql .= " WHERE typeremind = 'email'"; |
2628 | - $sql .= " AND status = 0"; // 0=No yet sent, -1=Error. TODO Include reminder in error once we can count number of error, so we can try 5 times and not more on errors. |
|
2628 | + $sql .= " AND status = 0"; // 0=No yet sent, -1=Error. TODO Include reminder in error once we can count number of error, so we can try 5 times and not more on errors. |
|
2629 | 2629 | $sql .= " AND dateremind <= '" . $this->db->idate($now) . "'"; |
2630 | 2630 | $sql .= " AND entity IN (" . getEntity('actioncomm') . ")"; |
2631 | 2631 | $sql .= $this->db->order("dateremind", "ASC"); |
@@ -2634,7 +2634,7 @@ discard block |
||
2634 | 2634 | if ($resql) { |
2635 | 2635 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/class/html.formmail.class.php'; |
2636 | 2636 | $formmail = new FormMail($this->db); |
2637 | - $to = null; // Ensure 'to' is defined for static analysis |
|
2637 | + $to = null; // Ensure 'to' is defined for static analysis |
|
2638 | 2638 | |
2639 | 2639 | while ($obj = $this->db->fetch_object($resql)) { |
2640 | 2640 | $res = $actionCommReminder->fetch($obj->id); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | } |
146 | 146 | } |
147 | 147 | |
148 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
148 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
149 | 149 | /** |
150 | 150 | * Return list of event types: array(id=>label) or array(code=>label) |
151 | 151 | * |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function liste_array($active = '', $idorcode = 'id', $excludetype = '', $onlyautoornot = 0, $morefilter = '', $shortlabel = 0) |
161 | 161 | { |
162 | - // phpcs:enable |
|
162 | + // phpcs:enable |
|
163 | 163 | global $langs, $conf, $user; |
164 | 164 | $langs->load("commercial"); |
165 | 165 |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | } |
264 | 264 | } |
265 | 265 | // For the case type is not 'system...' neither 'module', we just check module is on |
266 | - if (! in_array($obj->type, array('system', 'systemauto', 'module', 'moduleauto'))) { |
|
266 | + if (!in_array($obj->type, array('system', 'systemauto', 'module', 'moduleauto'))) { |
|
267 | 267 | $tmpmodule = $obj->module; |
268 | 268 | //var_dump($tmpmodule); |
269 | 269 | if ($tmpmodule && isset($conf->$tmpmodule) && isModEnabled($tmpmodule)) { |
@@ -351,10 +351,10 @@ discard block |
||
351 | 351 | $idorcode = 'all'; |
352 | 352 | } |
353 | 353 | $TType = $TSystem[$idorcode]; |
354 | - if (! empty($TSystemAuto[$idorcode])) { |
|
354 | + if (!empty($TSystemAuto[$idorcode])) { |
|
355 | 355 | $TType = array_merge($TType, $TSystemAuto[$idorcode]); |
356 | 356 | } |
357 | - if (! empty($TModule[$idorcode])) { |
|
357 | + if (!empty($TModule[$idorcode])) { |
|
358 | 358 | $TType = array_merge($TType, $TModule[$idorcode]); |
359 | 359 | } |
360 | 360 | $this->liste_array = $TType; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | return $this->LibStatut($this->status, $mode); |
227 | 227 | } |
228 | 228 | |
229 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
229 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
230 | 230 | /** |
231 | 231 | * Return the status |
232 | 232 | * |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | public static function LibStatut($status, $mode = 0) |
238 | 238 | { |
239 | - // phpcs:enable |
|
239 | + // phpcs:enable |
|
240 | 240 | global $langs; |
241 | 241 | |
242 | 242 | $labelStatus = $langs->transnoentitiesnoconv('ToDo'); |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | return $event; |
340 | 340 | } |
341 | 341 | |
342 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
342 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
343 | 343 | /** |
344 | 344 | * Clean sensible object datas |
345 | 345 | * |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | */ |
349 | 349 | protected function _cleanObjectDatas($object) |
350 | 350 | { |
351 | - // phpcs:enable |
|
351 | + // phpcs:enable |
|
352 | 352 | $object = parent::_cleanObjectDatas($object); |
353 | 353 | |
354 | 354 | unset($object->note); // alreaydy into note_private |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $conf->global->AGENDA_EXT_NB = 5; |
53 | 53 | } |
54 | 54 | $MAXAGENDA = getDolGlobalString('AGENDA_EXT_NB'); |
55 | -$DELAYFORCACHE = 300; // 300 seconds |
|
55 | +$DELAYFORCACHE = 300; // 300 seconds |
|
56 | 56 | |
57 | 57 | $disabledefaultvalues = GETPOSTINT('disabledefaultvalues'); |
58 | 58 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $mode = GETPOST('mode', 'aZ09'); |
111 | 111 | if (empty($mode) && preg_match('/show_/', $action)) { |
112 | - $mode = $action; // For backward compatibility |
|
112 | + $mode = $action; // For backward compatibility |
|
113 | 113 | } |
114 | 114 | $resourceid = GETPOST("search_resourceid", 'int'); |
115 | 115 | $year = GETPOSTINT("year") ? GETPOSTINT("year") : date("Y"); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | $defaultview = getDolGlobalString('AGENDA_DEFAULT_VIEW', 'show_month'); // default for app |
147 | -$defaultview = getDolUserString('AGENDA_DEFAULT_VIEW', $defaultview); // default for user |
|
147 | +$defaultview = getDolUserString('AGENDA_DEFAULT_VIEW', $defaultview); // default for user |
|
148 | 148 | if (empty($mode) && !GETPOSTISSET('mode')) { |
149 | 149 | $mode = $defaultview; |
150 | 150 | } |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | |
540 | 540 | $viewmode .= '</div>'; |
541 | 541 | |
542 | -$viewmode .= '<span class="marginrightonly"></span>'; // To add a space before the navigation tools |
|
542 | +$viewmode .= '<span class="marginrightonly"></span>'; // To add a space before the navigation tools |
|
543 | 543 | |
544 | 544 | |
545 | 545 | $newparam = ''; |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | $newparam .= '&month=' . ((int) $month) . '&year=' . ((int) $tmpforcreatebutton['year']) . '&mode=' . urlencode($mode); |
551 | 551 | |
552 | 552 | //$param='month='.$monthshown.'&year='.$year; |
553 | - $hourminsec = dol_print_date(dol_mktime(10, 0, 0, 1, 1, 1970, 'gmt'), '%H', 'gmt') . '0000'; // Set $hourminsec to '100000' to auto set hour to 10:00 at creation |
|
553 | + $hourminsec = dol_print_date(dol_mktime(10, 0, 0, 1, 1, 1970, 'gmt'), '%H', 'gmt') . '0000'; // Set $hourminsec to '100000' to auto set hour to 10:00 at creation |
|
554 | 554 | |
555 | 555 | $urltocreateaction = constant('BASE_URL') . '/comm/action/card.php?action=create'; |
556 | 556 | $urltocreateaction .= '&apyear=' . $tmpforcreatebutton['year'] . '&apmonth=' . $tmpforcreatebutton['mon'] . '&apday=' . $tmpforcreatebutton['mday'] . '&aphour=' . $tmpforcreatebutton['hours'] . '&apmin=' . $tmpforcreatebutton['minutes']; |
@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | $sql .= " WHERE bc.status = 1"; |
577 | 577 | $sql .= " AND ba.status = 1"; |
578 | 578 | if (!empty($filtert) && $filtert != -1) { |
579 | - $sql .= " AND bc.visibility = " . (int) $filtert ; |
|
579 | + $sql .= " AND bc.visibility = " . (int) $filtert; |
|
580 | 580 | } |
581 | 581 | $resql = $db->query($sql); |
582 | 582 | if ($resql) { |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | $s .= '</script>' . "\n"; |
659 | 659 | |
660 | 660 | foreach ($showextcals as $val) { |
661 | - $htmlname = md5($val['name']); // not used for security purpose, only to get a string with no special char |
|
661 | + $htmlname = md5($val['name']); // not used for security purpose, only to get a string with no special char |
|
662 | 662 | |
663 | 663 | if (!empty($val['default']) || GETPOSTINT('check_ext' . $htmlname)) { |
664 | 664 | $default = "checked"; |
@@ -1109,7 +1109,7 @@ discard block |
||
1109 | 1109 | |
1110 | 1110 | if ($mode == 'show_day') { |
1111 | 1111 | // Request only leaves for the current selected day |
1112 | - $sql .= " AND '" . $db->escape($year) . "-" . $db->escape($month) . "-" . $db->escape($day) . "' BETWEEN x.date_debut AND x.date_fin"; // date_debut and date_fin are date without time |
|
1112 | + $sql .= " AND '" . $db->escape($year) . "-" . $db->escape($month) . "-" . $db->escape($day) . "' BETWEEN x.date_debut AND x.date_fin"; // date_debut and date_fin are date without time |
|
1113 | 1113 | } elseif ($mode == 'show_week') { |
1114 | 1114 | // Restrict on current month (we get more, but we will filter later) |
1115 | 1115 | $sql .= " AND date_debut < '" . $db->idate(dol_get_last_day($year, $month)) . "'"; |
@@ -1655,7 +1655,7 @@ discard block |
||
1655 | 1655 | |
1656 | 1656 | for ($iter_day = 0; $iter_day < 7; $iter_day++) { |
1657 | 1657 | // Show days of the current week |
1658 | - $curtime = dol_time_plus_duree($firstdaytoshow, $iter_day, 'd'); // $firstdaytoshow is in timezone of server |
|
1658 | + $curtime = dol_time_plus_duree($firstdaytoshow, $iter_day, 'd'); // $firstdaytoshow is in timezone of server |
|
1659 | 1659 | $tmpday = dol_print_date($curtime, '%d', 'tzuserrel'); |
1660 | 1660 | $tmpmonth = dol_print_date($curtime, '%m', 'tzuserrel'); |
1661 | 1661 | $tmpyear = dol_print_date($curtime, '%Y', 'tzuserrel'); |
@@ -1885,9 +1885,9 @@ discard block |
||
1885 | 1885 | $tmpholiday = new Holiday($db); |
1886 | 1886 | |
1887 | 1887 | foreach ($eventarray as $daykey => $notused) { // daykey is the 'YYYYMMDD' to show according to user |
1888 | - $annee = dol_print_date($daykey, '%Y', 'gmt'); // We use gmt because we want the value represented by string 'YYYYMMDD' |
|
1889 | - $mois = dol_print_date($daykey, '%m', 'gmt'); // We use gmt because we want the value represented by string 'YYYYMMDD' |
|
1890 | - $jour = dol_print_date($daykey, '%d', 'gmt'); // We use gmt because we want the value represented by string 'YYYYMMDD' |
|
1888 | + $annee = dol_print_date($daykey, '%Y', 'gmt'); // We use gmt because we want the value represented by string 'YYYYMMDD' |
|
1889 | + $mois = dol_print_date($daykey, '%m', 'gmt'); // We use gmt because we want the value represented by string 'YYYYMMDD' |
|
1890 | + $jour = dol_print_date($daykey, '%d', 'gmt'); // We use gmt because we want the value represented by string 'YYYYMMDD' |
|
1891 | 1891 | |
1892 | 1892 | //print 'event daykey='.$daykey.' dol_print_date(daykey)='.dol_print_date($daykey, 'dayhour', 'gmt').' jour='.$jour.' mois='.$mois.' annee='.$annee."<br>\n"; |
1893 | 1893 | //print 'event daykey='.$daykey.' dol_print_date(daykey)='.dol_print_date($daykey, 'dayhour', 'gmt').' day='.$day.' month='.$month.' year='.$year."<br>\n"; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * \brief Page to edit absolute discounts for a customer |
27 | 27 | */ |
28 | 28 | |
29 | -if (! defined('CSRFCHECK_WITH_TOKEN')) { |
|
29 | +if (!defined('CSRFCHECK_WITH_TOKEN')) { |
|
30 | 30 | define('CSRFCHECK_WITH_TOKEN', '1'); |
31 | 31 | } // Force use of CSRF protection with tokens even for GET |
32 | 32 |
@@ -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'); |
@@ -39,13 +39,13 @@ |
||
39 | 39 | // Get parameters |
40 | 40 | $id = GETPOSTINT('id'); |
41 | 41 | $ref = GETPOST('ref', 'alpha'); |
42 | -$lineid = GETPOSTINT('lineid'); |
|
42 | +$lineid = GETPOSTINT('lineid'); |
|
43 | 43 | |
44 | 44 | $action = GETPOST('action', 'aZ09'); |
45 | 45 | $confirm = GETPOST('confirm', 'alpha'); |
46 | 46 | $cancel = GETPOST('cancel', 'aZ09'); |
47 | 47 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search |
48 | -$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
48 | +$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
49 | 49 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
50 | 50 | $backtopagejsfields = GETPOST('backtopagejsfields', 'alpha'); |
51 | 51 | $dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09'); |
@@ -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 |
@@ -189,7 +189,7 @@ |
||
189 | 189 | $maxfilesizearray = getMaxFileSizeArray(); |
190 | 190 | $maxmin = $maxfilesizearray['maxmin']; |
191 | 191 | if ($maxmin > 0) { |
192 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
192 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
193 | 193 | } |
194 | 194 | $texte .= ' <input type="file" name="uploadfile">'; |
195 | 195 | $texte .= '<input type="hidden" value="MYMODULE_MYOBJECT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |