Skip to main content

Hacks : notify-page-updates-for-tagged-books

Varseions :

root@597eaf963fbf:/# mv notify-tagged-page-updates.zip /app/www/root@597eaf963fbf:/# php artisan bookstack:install-module  notify-tagged-page-updates.zip
root@597eaf963fbf:/# apk add nano
root@597eaf963fbf:/# nano /app/www/themes/custom/modules/notify-page-updates-for-tagged-books/functions.php

Modif dans la fonction ;

24     public function toMail(User $notifiable): MailMessage
25     {
26         /** @var Page $page */
27         $page = $this->detail;
28         $updater = $this->user;
29
30         return (new MailMessage())
31 //            ->subject('BookStack page update notification')
32 //            ->line("La page \"{$page->name}\" has been updated by \"{$updater->name}\"")
33             ->subject('BookStack : notification de mise à jour de page')
34             ->line("The page \"{$page->name}\" a été mise à jour par \"{$updater->name}\"")
35             ->action('View Page', $page->getUrl());
36     }