mirror of
https://github.com/flarum/core.git
synced 2025-07-20 08:11:27 +02:00
Fix class names in strings
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user