Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused option display_project_padding #1726

Merged
merged 1 commit into from Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions config_defaults_inc.php
Expand Up @@ -3144,13 +3144,6 @@
'closed' => '#c9ccc4' # grey (aluminum #babdb6)
);

/**
* The padding level when displaying project ids
* The project id will be padded with 0's up to the size given
* @global integer $g_display_project_padding
*/
$g_display_project_padding = 3;

/**
* The padding level when displaying bug ids
* The bug id will be padded with 0's up to the size given
Expand Down Expand Up @@ -4470,7 +4463,6 @@
'display_bug_padding',
'display_bugnote_padding',
'display_errors',
'display_project_padding',
'download_attachments_threshold',
'due_date_default',
'due_date_update_threshold',
Expand Down
3 changes: 3 additions & 0 deletions core/obsolete.php
Expand Up @@ -229,3 +229,6 @@

# changes in 2.24.0
config_obsolete( 'bug_change_status_page_fields', 'bug_view_page_fields' );

# changes in 2.25.0
config_obsolete( 'display_project_padding' );
11 changes: 0 additions & 11 deletions core/project_api.php
Expand Up @@ -971,17 +971,6 @@ function project_delete_all_files( $p_project_id ) {
file_delete_project_files( $p_project_id );
}

/**
* Pads the project id with the appropriate number of zeros.
* @param integer $p_project_id A project identifier.
* @return string
*/
function project_format_id( $p_project_id ) {
$t_padding = config_get( 'display_project_padding' );
return( utf8_str_pad( $p_project_id, $t_padding, '0', STR_PAD_LEFT ) );
}


/**
* Returns the project name as a link formatted for display in menus and buttons.
*
Expand Down