Skip to content

Commit

Permalink
simplify font dir
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Tyler <[email protected]>
  • Loading branch information
jazzsequence and pwtyler authored Feb 8, 2024
1 parent 2d80e9e commit 1fa5a8b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions inc/fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ function pantheon_modify_fonts_dir() {
*/
function pantheon_font_dir( $defaults ) {
global $_pantheon_upload_dir;
$uploads_basedir = $_pantheon_upload_dir['basedir'];
$uploads_baseurl = $_pantheon_upload_dir['baseurl'];

// Set our font directory.
$font_dir = $uploads_basedir . '/fonts';
$font_url = $uploads_baseurl . '/fonts';
$font_dir = $_pantheon_upload_dir['basedir'] . '/fonts';
$font_url = $_pantheon_upload_dir['baseurl'] . '/fonts';

$defaults['path'] = $font_dir;
$defaults['url'] = $font_url;
Expand Down

0 comments on commit 1fa5a8b

Please sign in to comment.