From 8563a2161953066cb8ac9f05aa7d0a0861c35467 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 31 Jul 2009 20:12:11 +0000 Subject: [PATCH] No message needed if string not found git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7051 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/WikiAdminSearchReplace.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/plugin/WikiAdminSearchReplace.php b/lib/plugin/WikiAdminSearchReplace.php index 2ff5c7d64..846817736 100644 --- a/lib/plugin/WikiAdminSearchReplace.php +++ b/lib/plugin/WikiAdminSearchReplace.php @@ -101,14 +101,10 @@ extends WikiPlugin_WikiAdminSelect foreach ($pages as $pagename) { if (!mayAccessPage('edit', $pagename)) { $ul->pushContent(HTML::li(fmt("Access denied to change page '%s'.",$pagename))); - } elseif ($this->replaceHelper($dbi, $request, $pagename, $from, $to, $case_exact, $regex)) - { + } elseif ($this->replaceHelper($dbi, $request, $pagename, $from, $to, $case_exact, $regex)) { $ul->pushContent(HTML::li(fmt("Replaced '%s' with '%s' in page '%s'.", $from, $to, WikiLink($pagename)))); $count++; - } else { - $ul->pushContent(HTML::li(fmt("Search string '%s' not found in content of page '%s'.", - $from, WikiLink($pagename)))); } } if ($count) { @@ -120,12 +116,11 @@ extends WikiPlugin_WikiAdminSelect $result->pushContent(HTML::p(fmt("%s pages have been permanently changed:", $count))); } $result->pushContent($ul); - return $result; } else { $result->setAttr('class', 'error'); $result->pushContent(HTML::p("No pages changed.")); - return $result; } + return $result; } function run($dbi, $argstr, &$request, $basepage) { -- 2.45.0