FIX: Fontawesome version setting

This commit is contained in:
Tony Air 2020-01-28 20:54:17 +07:00 committed by GitHub
parent aa37ff457c
commit 9d03716c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class FontAwesomeField extends TextField
$this->addExtraClass('form-control icp icp-auto');
// Libraries
Requirements::css('https://use.fontawesome.com/releases/v5.0.8/css/all.css');
Requirements::css('https://use.fontawesome.com/releases/v'.self::config()->get('version').'/css/all.css');
Requirements::css(FONT_AWESOME_DIR . '/client/dist/css/lib/fontawesome-iconpicker.min.css');
Requirements::javascript(FONT_AWESOME_DIR . '/client/dist/js/lib/fontawesome-iconpicker.min.js');