mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Fix class names in strings
This commit is contained in:
parent
e1ca9964b2
commit
ede7e96282
|
@ -32,7 +32,7 @@ class NotificationServiceProvider extends AbstractServiceProvider
|
||||||
public function registerNotificationTypes()
|
public function registerNotificationTypes()
|
||||||
{
|
{
|
||||||
$blueprints = [
|
$blueprints = [
|
||||||
'Flarum\Notification\Notification\DiscussionRenamedBlueprint' => ['alert']
|
'Flarum\Notification\Blueprint\DiscussionRenamedBlueprint' => ['alert']
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->app->make('events')->fire(
|
$this->app->make('events')->fire(
|
||||||
|
@ -51,7 +51,7 @@ class NotificationServiceProvider extends AbstractServiceProvider
|
||||||
in_array('alert', $enabled)
|
in_array('alert', $enabled)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((new ReflectionClass($blueprint))->implementsInterface('Flarum\Notification\Notification\MailableInterface')) {
|
if ((new ReflectionClass($blueprint))->implementsInterface('Flarum\Notification\MailableInterface')) {
|
||||||
User::addPreference(
|
User::addPreference(
|
||||||
User::getNotificationPreferenceKey($type, 'email'),
|
User::getNotificationPreferenceKey($type, 'email'),
|
||||||
'boolval',
|
'boolval',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user