Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Nov 15, 2024
1 parent 5f0cc91 commit 3ff897b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/Engine/Media/Fonts/Frontend/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class Controller {
* @param Filesystem $filesystem Filesystem instance.
*/
public function __construct( Context $context, Filesystem $filesystem ) {
$this->context = $context;
$this->context = $context;
$this->base_path = rocket_get_constant( 'WP_ROCKET_CACHE_ROOT_PATH', '' ) . 'fonts/' . get_current_blog_id() . '/';
$this->base_url = rocket_get_constant( 'WP_ROCKET_CACHE_ROOT_URL', '' ) . 'fonts/' . get_current_blog_id() . '/';
$this->base_url = rocket_get_constant( 'WP_ROCKET_CACHE_ROOT_URL', '' ) . 'fonts/' . get_current_blog_id() . '/';
$this->filesystem = $filesystem;
}

Expand Down Expand Up @@ -143,7 +143,7 @@ private function get_optimized_markup(
* @param bool $enable Tells if we are enabling or not the inline css output.
*/
if ( wpm_apply_filters_typed( 'boolean', 'rocket_host_fonts_locally_inline_css', false ) ) {
$local_css_path = $this->base_path . $font_provider_path . $this->filesystem->hash_to_path( $hash ) . '.css';
$local_css_path = $this->base_path . $font_provider_path . $this->filesystem->hash_to_path( $hash ) . '.css';

$inline_css = $this->get_font_inline_css( $local_css_path, $gf_parameters );

Expand Down

0 comments on commit 3ff897b

Please sign in to comment.