fix filter
This commit is contained in:
parent
5455fe1c44
commit
71635ab255
|
@ -56,7 +56,7 @@
|
||||||
echo '<div><a href=note.php?title=' . urlencode($name) . '>' . $name .'</a>';
|
echo '<div><a href=note.php?title=' . urlencode($name) . '>' . $name .'</a>';
|
||||||
if ($filter && str_contains(cleanstring($content), cleanstring($filter)))
|
if ($filter && str_contains(cleanstring($content), cleanstring($filter)))
|
||||||
{
|
{
|
||||||
$pos = strpos(cleanstring($content), cleanstring($$filter));
|
$pos = strpos(cleanstring($content), cleanstring($filter));
|
||||||
echo '<span class="grey"> ' . $filter . substr($content, $pos + strlen($filter), 42) . '</span>';
|
echo '<span class="grey"> ' . $filter . substr($content, $pos + strlen($filter), 42) . '</span>';
|
||||||
}
|
}
|
||||||
echo'</div>';
|
echo'</div>';
|
||||||
|
@ -64,4 +64,4 @@
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue