diff --git a/src/Support/MediaLibraryPro.php b/src/Support/MediaLibraryPro.php index f50da93ff..1d1945d05 100644 --- a/src/Support/MediaLibraryPro.php +++ b/src/Support/MediaLibraryPro.php @@ -9,7 +9,7 @@ class MediaLibraryPro { public static function ensureInstalled() { - if (! class_exists(TemporaryUpload::class)) { + if (! self::isInstalled()) { throw FunctionalityNotAvailable::mediaLibraryProRequired(); } }