Skip to content

Commit

Permalink
Deprecate html_get_status_css_class()
Browse files Browse the repository at this point in the history
html_get_status_css_fg() / html_get_status_css_bg() should be used
instead.
  • Loading branch information
dregad committed Mar 29, 2019
1 parent fc6bf8e commit b52e3be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/html_api.php
Expand Up @@ -1401,8 +1401,16 @@ function html_get_status_css_bg( $p_status, $p_user = null, $p_project = null )
* @param integer $p_user A valid user identifier.
* @param integer $p_project A valid project identifier.
* @return string
*
* @deprecated 2.21.0 Use html_get_status_css_fg() or html_get_status_css_bg() instead
*/
function html_get_status_css_class( $p_status, $p_user = null, $p_project = null ) {
error_parameters(
__FUNCTION__ . '()',
'html_get_status_css_fg() or html_get_status_css_bg()'
);
trigger_error( ERROR_DEPRECATED_SUPERSEDED, DEPRECATED );

$t_class = html_get_status_css_fg( $p_status, $p_user, $p_project )
. ' '
. html_get_status_css_bg( $p_status, $p_user, $p_project );
Expand Down

0 comments on commit b52e3be

Please sign in to comment.