From dcf25714373c87746ff47a9f716ce45c0346345d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 8 Sep 2012 15:05:30 +0100 Subject: [PATCH] Show found instance count Now showing number of times our find string is found in a file --- lib/multiple-results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 08aea43..577fbfb 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -108,7 +108,7 @@ if (startTab!=top.ICEcoder.selectedTab) { } if (!$rFile && !$bFile) { $ret .= ""; - $ret .= str_replace($base,"",$fullPath)."
Found X times
"; + $ret .= str_replace($base,"",$fullPath)."
Found ".substr_count(strtolower(file_get_contents($fullPath)),$q)." times
"; if (isset($_GET['replace'])) { $ret .= "
replace
"; };