Fix class names in strings

This commit is contained in:
Franz Liedke 2017-06-24 14:37:13 +02:00
parent e1ca9964b2
commit ede7e96282

View File

@ -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',