Skip to content

Commit

Permalink
Added link to download Carbon Fields when not loaded via Composer
Browse files Browse the repository at this point in the history
  • Loading branch information
dmhendricks committed Oct 23, 2018
1 parent abf842b commit b244810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function verify_dependencies( $die = false ) {
$requirements->add_check( 'carbon_fields', function( $val, $res ) {
$cf_version = defined('\\Carbon_Fields\\VERSION') ? current( explode( '-', \Carbon_Fields\VERSION ) ) : null;
if( !$cf_version ) {
$res->add_error( __( 'The Carbon Fields framework is not loaded.', self::$textdomain ) );
$res->add_error( sprintf( __( 'The <a href="%s" target="_blank">Carbon Fields</a> framework is not loaded.', self::$textdomain ), 'https://carbonfields.net/release-archive/' ) );
} else if( version_compare( $cf_version, self::$config->get( 'dependencies/carbon_fields' ), '<' ) ) {
$res->add_error( sprintf( __( 'An outdated version of Carbon Fields has been detected: %s (&gt;= %s required).', self::$textdomain ), $cf_version, self::$config->get( 'dependencies/carbon_fields' ) ) );
}
Expand Down

0 comments on commit b244810

Please sign in to comment.