19 lines
652 B
PHP
19 lines
652 B
PHP
<?php
|
||
|
||
namespace MailPoet\Config;
|
||
use MailPoet\WP\Functions as WPFunctions;
|
||
|
||
class PluginActivatedHook {
|
||
private $deferred_admin_notices;
|
||
|
||
public function __construct(DeferredAdminNotices $deferred_admin_notices) {
|
||
$this->deferred_admin_notices = $deferred_admin_notices;
|
||
}
|
||
|
||
public function action($plugin, $network_wide) {
|
||
if ($plugin === WPFunctions::get()->pluginBasename(Env::$file) && $network_wide) {
|
||
$this->deferred_admin_notices->addNetworkAdminNotice(__("We noticed that you're using an unsupported environment. While MailPoet might work within a MultiSite environment, we don’t support it.", 'mailpoet'));
|
||
}
|
||
}
|
||
}
|