flash_message -> page->flash, with no cookies

This commit is contained in:
Shish
2019-12-15 19:47:18 +00:00
parent 8740d83686
commit 70db0ce5bd
29 changed files with 93 additions and 115 deletions

View File

@@ -357,7 +357,7 @@ class Ratings extends Extension
public function onBulkAction(BulkActionEvent $event)
{
global $user;
global $page, $user;
switch ($event->action) {
case "bulk_rate":
@@ -371,7 +371,7 @@ class Ratings extends Extension
send_event(new RatingSetEvent($image, $rating));
$total++;
}
flash_message("Rating set for $total items");
$page->flash("Rating set for $total items");
}
break;
}