@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | return $list; |
723 | 723 | } |
724 | 724 | |
725 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
725 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
726 | 726 | /** |
727 | 727 | * Clean sensible object datas |
728 | 728 | * |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | */ |
732 | 732 | protected function _cleanObjectDatas($object) |
733 | 733 | { |
734 | - // phpcs:enable |
|
734 | + // phpcs:enable |
|
735 | 735 | $object = parent::_cleanObjectDatas($object); |
736 | 736 | |
737 | 737 | unset($object->error); |
@@ -1170,7 +1170,7 @@ discard block |
||
1170 | 1170 | $list[$tab->elementtype][$tab->name]['computed'] = $tab->fieldcomputed; |
1171 | 1171 | $list[$tab->elementtype][$tab->name]['unique'] = $tab->fieldunique; |
1172 | 1172 | $list[$tab->elementtype][$tab->name]['required'] = $tab->fieldrequired; |
1173 | - $list[$tab->elementtype][$tab->name]['param'] = ($tab->param ? jsonOrUnserialize($tab->param) : ''); // This may be a string encoded with serialise() or json_encode() |
|
1173 | + $list[$tab->elementtype][$tab->name]['param'] = ($tab->param ? jsonOrUnserialize($tab->param) : ''); // This may be a string encoded with serialise() or json_encode() |
|
1174 | 1174 | $list[$tab->elementtype][$tab->name]['pos'] = $tab->pos; |
1175 | 1175 | $list[$tab->elementtype][$tab->name]['alwayseditable'] = $tab->alwayseditable; |
1176 | 1176 | $list[$tab->elementtype][$tab->name]['perms'] = $tab->perms; |
@@ -2109,7 +2109,7 @@ discard block |
||
2109 | 2109 | throw new RestException(500, $langs->trans('XmlNotFound') . ': /install/' . $xmlshortfile); |
2110 | 2110 | } |
2111 | 2111 | } else { |
2112 | - $xmlarray = getURLContent($xmlremote, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only. Same is used into filecheck.php. |
|
2112 | + $xmlarray = getURLContent($xmlremote, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only. Same is used into filecheck.php. |
|
2113 | 2113 | |
2114 | 2114 | // Return array('content'=>response,'curl_error_no'=>errno,'curl_error_msg'=>errmsg...) |
2115 | 2115 | if (!$xmlarray['curl_error_no'] && $xmlarray['http_code'] != '400' && $xmlarray['http_code'] != '404') { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | //$this->r->setSupportedFormats('jsonFormat'); |
71 | 71 | } |
72 | 72 | |
73 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
73 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
74 | 74 | /** |
75 | 75 | * Check and convert a string depending on its type/name. |
76 | 76 | * |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function _checkValForAPI($field, $value, $object) |
85 | 85 | { |
86 | - // phpcs:enable |
|
86 | + // phpcs:enable |
|
87 | 87 | if (!is_array($value)) { |
88 | 88 | // TODO Use type detected in $object->fields if $object known and we can |
89 | 89 | if (in_array($field, array('note', 'note_private', 'note_public', 'desc', 'description'))) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | } |
100 | 100 | |
101 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
101 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
102 | 102 | /** |
103 | 103 | * Filter properties that will be returned on object |
104 | 104 | * |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return $object; |
122 | 122 | } |
123 | 123 | |
124 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
124 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
125 | 125 | /** |
126 | 126 | * Clean sensible object datas |
127 | 127 | * |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | protected function _cleanObjectDatas($object) |
132 | 132 | { |
133 | - // phpcs:enable |
|
133 | + // phpcs:enable |
|
134 | 134 | // Remove $db object property for object |
135 | 135 | unset($object->db); |
136 | 136 | unset($object->isextrafieldmanaged); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | return $object; |
289 | 289 | } |
290 | 290 | |
291 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
291 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
292 | 292 | /** |
293 | 293 | * Check access by user to a given resource |
294 | 294 | * |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | */ |
303 | 303 | protected static function _checkAccessToResource($resource, $resource_id = 0, $dbtablename = '', $feature2 = '', $dbt_keyfield = 'fk_soc', $dbt_select = 'rowid') |
304 | 304 | { |
305 | - // phpcs:enable |
|
305 | + // phpcs:enable |
|
306 | 306 | // Features/modules to check |
307 | 307 | $featuresarray = array($resource); |
308 | 308 | if (preg_match('/&/', $resource)) { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | return checkUserAccessToObject(DolibarrApiAccess::$user, $featuresarray, $resource_id, $dbtablename, $feature2, $dbt_keyfield, $dbt_select); |
320 | 320 | } |
321 | 321 | |
322 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
322 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
323 | 323 | /** |
324 | 324 | * Return if a $sqlfilters parameter is valid |
325 | 325 | * Function no more used. Kept for backward compatibility with old APIs of modules |
@@ -330,13 +330,13 @@ discard block |
||
330 | 330 | */ |
331 | 331 | protected function _checkFilters($sqlfilters, &$error = '') |
332 | 332 | { |
333 | - // phpcs:enable |
|
333 | + // phpcs:enable |
|
334 | 334 | $firstandlastparenthesis = 0; |
335 | 335 | return dolCheckFilters($sqlfilters, $error, $firstandlastparenthesis); |
336 | 336 | } |
337 | 337 | |
338 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
339 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
338 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
339 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
340 | 340 | /** |
341 | 341 | * Function to forge a SQL criteria from a Generic filter string. |
342 | 342 | * Function no more used. Kept for backward compatibility with old APIs of modules |
@@ -158,11 +158,11 @@ |
||
158 | 158 | unset($object->barcode_type_code); |
159 | 159 | unset($object->barcode_type_label); |
160 | 160 | |
161 | - unset($object->mode_reglement); // We use mode_reglement_id now |
|
162 | - unset($object->cond_reglement); // We use cond_reglement_id now |
|
163 | - unset($object->note); // We use note_public or note_private now |
|
164 | - unset($object->contact); // We use contact_id now |
|
165 | - unset($object->thirdparty); // We use thirdparty_id or fk_soc or socid now |
|
161 | + unset($object->mode_reglement); // We use mode_reglement_id now |
|
162 | + unset($object->cond_reglement); // We use cond_reglement_id now |
|
163 | + unset($object->note); // We use note_public or note_private now |
|
164 | + unset($object->contact); // We use contact_id now |
|
165 | + unset($object->thirdparty); // We use thirdparty_id or fk_soc or socid now |
|
166 | 166 | |
167 | 167 | unset($object->projet); // Should be fk_project |
168 | 168 | unset($object->project); // Should be fk_project |
@@ -995,7 +995,7 @@ discard block |
||
995 | 995 | throw new RestException(403); |
996 | 996 | } |
997 | 997 | |
998 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName |
|
998 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName |
|
999 | 999 | /** |
1000 | 1000 | * Validate fields before create or update object |
1001 | 1001 | * |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | */ |
1006 | 1006 | private function _validate_file($data) |
1007 | 1007 | { |
1008 | - // phpcs:enable |
|
1008 | + // phpcs:enable |
|
1009 | 1009 | $result = array(); |
1010 | 1010 | foreach (Documents::$DOCUMENT_FIELDS as $field) { |
1011 | 1011 | if (!isset($data[$field])) { |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | } |
581 | 581 | |
582 | 582 | $objectType = $modulepart; |
583 | - if (! empty($object->id) && ! empty($object->table_element)) { |
|
583 | + if (!empty($object->id) && !empty($object->table_element)) { |
|
584 | 584 | $objectType = $object->table_element; |
585 | 585 | } |
586 | 586 | |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | throw new RestException(503, 'Error when retrieve ecm list : ' . $this->db->lasterror()); |
597 | 597 | } elseif (is_array($ecmfile->lines) && count($ecmfile->lines) > 0) { |
598 | 598 | $count = count($filearray); |
599 | - for ($i = 0 ; $i < $count ; $i++) { |
|
599 | + for ($i = 0; $i < $count; $i++) { |
|
600 | 600 | if ($filearray[$i]['name'] == $ecmfile->lines[$i]->filename) { |
601 | 601 | $filearray[$i] = array_merge($filearray[$i], (array) $ecmfile->lines[0]); |
602 | 602 | } |
@@ -585,7 +585,7 @@ |
||
585 | 585 | 'metadata' => $metadata, |
586 | 586 | 'customer' => $customer->id, |
587 | 587 | 'source' => $card, |
588 | - 'statement_descriptor_suffix' => dol_trunc($FULLTAG, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description) |
|
588 | + 'statement_descriptor_suffix' => dol_trunc($FULLTAG, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description) |
|
589 | 589 | ), array("idempotency_key" => "$FULLTAG", "stripe_account" => "$stripeacc")); |
590 | 590 | // Return $charge = array('id'=>'ch_XXXX', 'status'=>'succeeded|pending|failed', 'failure_code'=>, 'failure_message'=>...) |
591 | 591 | if (empty($charge)) { |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | $tokenisok = ($conf->global->PAYMENT_SECURITY_TOKEN == $SECUREKEY); |
313 | 313 | } |
314 | 314 | |
315 | - if (! $tokenisok) { |
|
315 | + if (!$tokenisok) { |
|
316 | 316 | if (!getDolGlobalString('PAYMENT_SECURITY_ACCEPT_ANY_TOKEN')) { |
317 | 317 | $valid = false; // PAYMENT_SECURITY_ACCEPT_ANY_TOKEN is for backward compatibility |
318 | 318 | } else { |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | if (!empty($conf->global->$paramcreditorlong)) { |
344 | 344 | $creditor = getDolGlobalString($paramcreditorlong); // use label long of the seller to show |
345 | 345 | } elseif (!empty($conf->global->$paramcreditor)) { |
346 | - $creditor = getDolGlobalString($paramcreditor); // use label short of the seller to show |
|
346 | + $creditor = getDolGlobalString($paramcreditor); // use label short of the seller to show |
|
347 | 347 | } |
348 | 348 | |
349 | 349 | $mesg = ''; |
@@ -792,8 +792,8 @@ discard block |
||
792 | 792 | $remoteip = getUserRemoteIP(); |
793 | 793 | |
794 | 794 | $_SESSION["onlinetoken"] = $stripeToken; |
795 | - $_SESSION["FinalPaymentAmt"] = $amount; // amount really paid (coming from Stripe). Will be used for check in paymentok.php. |
|
796 | - $_SESSION["currencyCodeType"] = $currency; // currency really used for payment (coming from Stripe). Will be used for check in paymentok.php. |
|
795 | + $_SESSION["FinalPaymentAmt"] = $amount; // amount really paid (coming from Stripe). Will be used for check in paymentok.php. |
|
796 | + $_SESSION["currencyCodeType"] = $currency; // currency really used for payment (coming from Stripe). Will be used for check in paymentok.php. |
|
797 | 797 | $_SESSION["paymentType"] = ''; |
798 | 798 | $_SESSION['ipaddress'] = ($remoteip ? $remoteip : 'unknown'); // Payer ip |
799 | 799 | $_SESSION['payerID'] = is_object($customer) ? $customer->id : ''; |
@@ -1014,7 +1014,7 @@ discard block |
||
1014 | 1014 | // Currency |
1015 | 1015 | print ' <b>' . $langs->trans("Currency" . $currency) . '</b>'; |
1016 | 1016 | } else { |
1017 | - print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1017 | + print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1018 | 1018 | print '<input type="hidden" name="amount" value="' . $amount . '">'; |
1019 | 1019 | print '<input type="hidden" name="newamount" value="' . $amount . '">'; |
1020 | 1020 | } |
@@ -1115,7 +1115,7 @@ discard block |
||
1115 | 1115 | // Currency |
1116 | 1116 | print ' <b>' . $langs->trans("Currency" . $currency) . '</b>'; |
1117 | 1117 | } else { |
1118 | - print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1118 | + print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1119 | 1119 | print '<input type="hidden" name="amount" value="' . $amount . '">'; |
1120 | 1120 | print '<input type="hidden" name="newamount" value="' . $amount . '">'; |
1121 | 1121 | } |
@@ -1246,12 +1246,12 @@ discard block |
||
1246 | 1246 | print '<input class="flat maxwidth75" type="text" name="newamount" value="' . price2num(GETPOST("newamount", "alpha"), 'MT') . '">'; |
1247 | 1247 | print ' <b>' . $langs->trans("Currency" . $currency) . '</b>'; |
1248 | 1248 | } else { |
1249 | - print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1249 | + print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1250 | 1250 | print '<input type="hidden" name="amount" value="' . $amount . '">'; |
1251 | 1251 | print '<input type="hidden" name="newamount" value="' . $amount . '">'; |
1252 | 1252 | } |
1253 | 1253 | } else { |
1254 | - print '<b class="amount">' . price($object->total_ttc, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1254 | + print '<b class="amount">' . price($object->total_ttc, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1255 | 1255 | } |
1256 | 1256 | print '<input type="hidden" name="currency" value="' . $currency . '">'; |
1257 | 1257 | print '</td></tr>' . "\n"; |
@@ -1446,7 +1446,7 @@ discard block |
||
1446 | 1446 | // Currency |
1447 | 1447 | print ' <b>' . $langs->trans("Currency" . $currency) . '</b>'; |
1448 | 1448 | } else { |
1449 | - print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1449 | + print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1450 | 1450 | print '<input type="hidden" name="amount" value="' . $amount . '">'; |
1451 | 1451 | print '<input type="hidden" name="newamount" value="' . $amount . '">'; |
1452 | 1452 | } |
@@ -1664,7 +1664,7 @@ discard block |
||
1664 | 1664 | print '<input type="text" class="width75" name="newamount" value="' . price($amount, 1, $langs, 1, -1, -1) . '">'; |
1665 | 1665 | } |
1666 | 1666 | } else { |
1667 | - print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1667 | + print '<b class="amount">' . price($amount, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1668 | 1668 | if ($minimumamount > $amount) { |
1669 | 1669 | print ' <span class="opacitymedium small">' . $langs->trans("AmountIsLowerToMinimumNotice", price($minimumamount, 1, $langs, 1, -1, -1, $currency)) . '</span>'; |
1670 | 1670 | } |
@@ -1825,7 +1825,7 @@ discard block |
||
1825 | 1825 | $valtoshow = max(getDolGlobalString('DONATION_MIN_AMOUNT'), $valtoshow); |
1826 | 1826 | $amount = $valtoshow; |
1827 | 1827 | } |
1828 | - print '<b class="amount">' . price($valtoshow, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1828 | + print '<b class="amount">' . price($valtoshow, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1829 | 1829 | print '<input type="hidden" name="amount" value="' . $valtoshow . '">'; |
1830 | 1830 | print '<input type="hidden" name="newamount" value="' . $valtoshow . '">'; |
1831 | 1831 | } |
@@ -1901,7 +1901,7 @@ discard block |
||
1901 | 1901 | print '</b>'; |
1902 | 1902 | print '</td></tr>' . "\n"; |
1903 | 1903 | |
1904 | - if (! is_object($attendee->project)) { |
|
1904 | + if (!is_object($attendee->project)) { |
|
1905 | 1905 | $text = 'ErrorProjectNotFound'; |
1906 | 1906 | } else { |
1907 | 1907 | $text = $langs->trans("PaymentEvent") . ' - ' . $attendee->project->title; |
@@ -1918,7 +1918,7 @@ discard block |
||
1918 | 1918 | print '<tr class="CTableRow2"><td class="CTableRow2">' . $langs->trans("Amount"); |
1919 | 1919 | print '</td><td class="CTableRow2">'; |
1920 | 1920 | $valtoshow = $amount; |
1921 | - print '<b class="amount">' . price($valtoshow, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1921 | + print '<b class="amount">' . price($valtoshow, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
1922 | 1922 | print '<input type="hidden" name="amount" value="' . $valtoshow . '">'; |
1923 | 1923 | print '<input type="hidden" name="newamount" value="' . $valtoshow . '">'; |
1924 | 1924 | print '<input type="hidden" name="currency" value="' . $currency . '">'; |
@@ -2002,7 +2002,7 @@ discard block |
||
2002 | 2002 | print '<tr class="CTableRow2"><td class="CTableRow2">' . $langs->trans("Amount"); |
2003 | 2003 | print '</td><td class="CTableRow2">'; |
2004 | 2004 | $valtoshow = $amount; |
2005 | - print '<b class="amount">' . price($valtoshow, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
2005 | + print '<b class="amount">' . price($valtoshow, 1, $langs, 1, -1, -1, $currency) . '</b>'; // Price with currency |
|
2006 | 2006 | print '<input type="hidden" name="amount" value="' . $valtoshow . '">'; |
2007 | 2007 | print '<input type="hidden" name="newamount" value="' . $valtoshow . '">'; |
2008 | 2008 | print '<input type="hidden" name="currency" value="' . $currency . '">'; |
@@ -49,7 +49,9 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | // Not sure this is required |
52 | -if (isset($_SESSION['webportal_logged_thirdparty_account_id'])) unset($_SESSION['webportal_logged_thirdparty_account_id']); |
|
52 | +if (isset($_SESSION['webportal_logged_thirdparty_account_id'])) { |
|
53 | + unset($_SESSION['webportal_logged_thirdparty_account_id']); |
|
54 | +} |
|
53 | 55 | |
54 | 56 | if (GETPOST('noredirect')) { |
55 | 57 | return; |
@@ -393,7 +393,7 @@ |
||
393 | 393 | $formticket->trackid = 'tic' . $object->dao->id; |
394 | 394 | |
395 | 395 | $formticket->param = array('track_id' => $object->dao->track_id, 'fk_user_create' => '-1', |
396 | - 'returnurl' => DOL_URL_ROOT . '/public/ticket/view.php' . (!empty($entity) && isModEnabled('multicompany') ? '?entity=' . $entity : '')); |
|
396 | + 'returnurl' => DOL_URL_ROOT . '/public/ticket/view.php' . (!empty($entity) && isModEnabled('multicompany') ? '?entity=' . $entity : '')); |
|
397 | 397 | |
398 | 398 | $formticket->withfile = 2; |
399 | 399 | $formticket->withcancel = 1; |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | return $this->LibStatut($this->fk_statut, $this->billed, $mode); |
321 | 321 | } |
322 | 322 | |
323 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
323 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
324 | 324 | /** |
325 | 325 | * Return label of status |
326 | 326 | * |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | */ |
333 | 333 | public function LibStatut($status, $billed, $mode, $donotshowbilled = 0) |
334 | 334 | { |
335 | - // phpcs:enable |
|
335 | + // phpcs:enable |
|
336 | 336 | return $this->getOrderStatic()->LibStatut($status, $billed, $mode, $donotshowbilled); |
337 | 337 | } |
338 | 338 | } |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | return $this->LibStatut($this->status, $this->need_subscription, $this->datefin, $mode); |
391 | 391 | } |
392 | 392 | |
393 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
393 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
394 | 394 | |
395 | 395 | /** |
396 | 396 | * Renvoi le libelle d'un statut donne |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | */ |
404 | 404 | public function LibStatut($status, $need_subscription, $date_end_subscription, $mode = 0) |
405 | 405 | { |
406 | - // phpcs:enable |
|
406 | + // phpcs:enable |
|
407 | 407 | return $this->getMemberStatic()->LibStatut($status, $need_subscription, $date_end_subscription, $mode); |
408 | 408 | } |
409 | 409 |
@@ -17,11 +17,11 @@ |
||
17 | 17 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
18 | 18 | */ |
19 | 19 | |
20 | - /** |
|
21 | - * \file htdocs/webportal/class/controller.class.php |
|
22 | - * \ingroup webportal |
|
23 | - * \brief File of controller class for WebPortal |
|
24 | - */ |
|
20 | + /** |
|
21 | + * \file htdocs/webportal/class/controller.class.php |
|
22 | + * \ingroup webportal |
|
23 | + * \brief File of controller class for WebPortal |
|
24 | + */ |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Class to manage pages |
@@ -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 | } |