diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php
index d3c1d4df..97e8d94f 100644
--- a/themes/danbooru/layout.class.php
+++ b/themes/danbooru/layout.class.php
@@ -125,7 +125,7 @@ class Layout
$withleft = "noleft";
}
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<
diff --git a/themes/danbooru2/layout.class.php b/themes/danbooru2/layout.class.php
index cedfed6a..0a183ffb 100644
--- a/themes/danbooru2/layout.class.php
+++ b/themes/danbooru2/layout.class.php
@@ -125,7 +125,7 @@ class Layout
$withleft = "noleft";
}
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<
diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php
index fe6af251..e67056a9 100644
--- a/themes/default/layout.class.php
+++ b/themes/default/layout.class.php
@@ -45,7 +45,7 @@ class Layout
$wrapper = ' style="height: 3em; overflow: auto;"';
}
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<
diff --git a/themes/futaba/layout.class.php b/themes/futaba/layout.class.php
index b6c0f281..bf0a5e5d 100644
--- a/themes/futaba/layout.class.php
+++ b/themes/futaba/layout.class.php
@@ -50,7 +50,7 @@ class Layout
$withleft = "";
}
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<
diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php
index a88b2a0e..8945ff5d 100644
--- a/themes/lite/layout.class.php
+++ b/themes/lite/layout.class.php
@@ -82,7 +82,7 @@ class Layout
$main_block_html = "{$main_block_html}";
}
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<
diff --git a/themes/material/layout.class.php b/themes/material/layout.class.php
index fa6887de..e178c5e0 100644
--- a/themes/material/layout.class.php
+++ b/themes/material/layout.class.php
@@ -92,7 +92,7 @@ class Layout
}
*/
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<
diff --git a/themes/warm/layout.class.php b/themes/warm/layout.class.php
index ec3c847a..b88a8726 100644
--- a/themes/warm/layout.class.php
+++ b/themes/warm/layout.class.php
@@ -54,7 +54,7 @@ class Layout
}
*/
- $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $flash)))."" : "";
+ $flash_html = $page->flash ? "".nl2br(html_escape(implode("\n", $page->flash)))."" : "";
print <<