Skip to content

Commit

Permalink
Remove not used method
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 4, 2024
1 parent 40f2830 commit bd4dbe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The following changes may create regressions for some external modules, but were
* The experimental and deprecated module WebserviceClient is completely removed (SOAP technology is deprecated). May be replaced with the stable module Webhook.
* The dynamic properties ->no_button_delete, ->no_button_edit, ->no_button_copy for $object Product that could be set by an external module must no more
be set (not allowed by PHP 8.2). A module can already return an array with key 'no_button_delete', 'no_button_edit', 'no_button_copy' for same purpose.
* The old function dol_bc($var, $moreclass = '') has been removed. If you called it, just stop to call it.


***** ChangeLog for 20.0.0 compared to 19.0 *****
Expand Down
32 changes: 7 additions & 25 deletions htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3163,23 +3163,6 @@ function fieldLabel($langkey, $fieldkey, $fieldrequired = 0)
return $ret;
}

/**
* Return string to add class property on html element with pair/impair.
*
* @param boolean $var false or true
* @param string $moreclass More class to add
* @return string String to add class onto HTML element
*/
function dol_bc($var, $moreclass = '')
{
global $bc;
$ret = ' '.$bc[$var];
if ($moreclass) {
$ret = preg_replace('/class=\"/', 'class="'.$moreclass.' ', $ret);
}
return $ret;
}

/**
* Return a formatted address (part address/zip/town/state) according to country rules.
* See https://en.wikipedia.org/wiki/Address
Expand Down Expand Up @@ -12669,7 +12652,7 @@ function dolGetButtonTitleSeparator($moreClass = "")
/**
* get field error icon
*
* @param string $fieldValidationErrorMsg message to add in tooltip
* @param string $fieldValidationErrorMsg Message to add in tooltip
* @return string html output
*/
function getFieldErrorIcon($fieldValidationErrorMsg)
Expand Down Expand Up @@ -14678,7 +14661,7 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,

/**
* Helper function that combines values of a dolibarr DatePicker (such as Form::selectDate) for year, month, day (and
* optionally hour, minute, second) fields to return a a portion of URL reproducing the values from the current HTTP
* optionally hour, minute, second) fields to return a portion of URL reproducing the values from the current HTTP
* request.
*
* @param string $prefix Prefix used to build the date selector (for instance using Form::selectDate)
Expand Down Expand Up @@ -14713,14 +14696,13 @@ function buildParamDate($prefix, $timestamp = null, $hourTime = '', $gm = 'auto'
* whether to include the header and footer, and if only the message should be shown without additional details.
* The function also supports executing additional hooks for customized handling of error pages.
*
* @param string $message Custom error message to display. If empty, a default "Record Not Found" message is shown.
* @param int<0,1> $printheader Determines if the page header should be printed (1 = yes, 0 = no).
* @param int<0,1> $printfooter Determines if the page footer should be printed (1 = yes, 0 = no).
* @param int<0,1> $showonlymessage If set to 1, only the error message is displayed without any additional information or hooks.
* @param mixed $params Optional parameters to pass to hooks for further processing or customization.
* @param string $message Custom error message to display. If empty, a default "Record Not Found" message is shown.
* @param int<0,1> $printheader Determines if the page header should be printed (1 = yes, 0 = no).
* @param int<0,1> $printfooter Determines if the page footer should be printed (1 = yes, 0 = no).
* @param int<0,1> $showonlymessage If set to 1, only the error message is displayed without any additional information or hooks.
* @param mixed $params Optional parameters to pass to hooks for further processing or customization.
* @global Conf $conf Dolibarr configuration object (global)
* @global DoliDB $db Database connection object (global)
* @global User $user Current user object (global)
* @global Translate $langs Language translation object, initialized within the function if not already.
* @global HookManager $hookmanager Hook manager object, initialized within the function if not already for executing hooks.
* @global string $action Current action, can be modified by hooks.
Expand Down

0 comments on commit bd4dbe7

Please sign in to comment.