Files
piratepoet/lib/Config/PluginActivatedHook.php
Jan Jakeš 8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00

20 lines
641 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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