Skip to content

Commit

Permalink
Use config_get_global for file_type_icons
Browse files Browse the repository at this point in the history
Issue #23626
  • Loading branch information
atrol committed Nov 13, 2017
1 parent f213c2a commit b109e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/file_api.php
Expand Up @@ -243,7 +243,7 @@ function file_can_delete_bug_attachments( $p_bug_id, $p_uploader_user_id = null
* @return array
*/
function file_get_icon_url( $p_display_filename ) {
$t_file_type_icons = config_get( 'file_type_icons' );
$t_file_type_icons = config_get_global( 'file_type_icons' );

$t_ext = utf8_strtolower( pathinfo( $p_display_filename, PATHINFO_EXTENSION ) );
if( is_blank( $t_ext ) || !isset( $t_file_type_icons[$t_ext] ) ) {
Expand Down

0 comments on commit b109e2f

Please sign in to comment.