|
@@ -37,8 +37,8 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
|
|
38
|
38
|
add_action( 'admin_init', 'checkForEduAdminPlugin' ); |
|
39
|
39
|
function checkForEduAdminPlugin() { |
|
40
|
|
- if ( is_admin() && current_user_can( 'activate_plugins' ) && ( ! is_plugin_active( 'eduadmin-booking/eduadmin.php' ) && ! is_plugin_active( 'eduadmin/eduadmin.php' ) ) ) { |
|
41
|
|
- add_action( 'admin_notices', function () { |
|
|
40
|
+ if ( is_admin() && current_user_can( 'activate_plugins' ) && ( !is_plugin_active( 'eduadmin-booking/eduadmin.php' ) && !is_plugin_active( 'eduadmin/eduadmin.php' ) ) ) { |
|
|
41
|
+ add_action( 'admin_notices', function() { |
|
42
|
42
|
?> |
|
43
|
43
|
<div class="error"> |
|
44
|
44
|
<p><?php _e( 'This plugin requires the EduAdmin-WordPress-plugin to be installed and activated.', 'eduadmin-sveawebpay' ); ?></p> |
|
@@ -52,7 +52,7 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
} |
|
53
|
53
|
} |
|
54
|
54
|
|
|
55
|
|
-if ( ! class_exists( 'EDU_SveaWebPay_Loader' ) ): |
|
|
55
|
+if ( !class_exists( 'EDU_SveaWebPay_Loader' ) ): |
|
56
|
56
|
|
|
57
|
57
|
final class EDU_SveaWebPay_Loader { |
|
58
|
58
|
public function __construct() { |
Please login to merge, or discard this patch.