diff --git a/admin/views/FindReplace/index.php b/admin/views/FindReplace/index.php index bde1177..b7e19b5 100644 --- a/admin/views/FindReplace/index.php +++ b/admin/views/FindReplace/index.php @@ -1,20 +1,9 @@
Search saved content, then replace matches from the results screen. A search and its rows are kept or deleted together.
=form_open(null, 'id="find-replace-form"')?> diff --git a/src/Admin/Controller/FindReplace.php b/src/Admin/Controller/FindReplace.php index 7f16a4d..3afbb5e 100644 --- a/src/Admin/Controller/FindReplace.php +++ b/src/Admin/Controller/FindReplace.php @@ -48,10 +48,15 @@ public static function announce(): Nav|array|null public function index(): void { $this->requireSearchPermission(); + $warning = $this->searchQueue()->warning(); + + if ($warning !== null) { + $this->oUserFeedback->warning(htmlspecialchars($warning, ENT_QUOTES, 'UTF-8')); + } + $this ->addBreadcrumb('Utilities') ->addBreadcrumb('Find & Replace') - ->setData('queueWarning', $this->searchQueue()->warning()) ->loadView('index'); }