Skip to content
Snippets Groups Projects
Commit dad10ccd authored by Damien McKenna's avatar Damien McKenna
Browse files

Issue #3442036 by DamienMcKenna: Search result list is encoded incorrectly.

parent 8fc0e9fa
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ Search and Replace Scanner 7.x-1.x-dev, 2024-xx-xx
the errors/warnings reported by PHP_CodeSniffer.
#3440474 by DamienMcKenna: Move functionality into separate pages.inc file.
#3440512 by DamienMcKenna: Search/replace on summary field doesn't work.
#3442036 by DamienMcKenna: Search result list is encoded incorrectly.
Search and Replace Scanner 7.x-1.1, 2018-11-09
......
......@@ -38,9 +38,9 @@ function theme_scanner_item($variables) {
$item = $variables['item'];
$item['count'] = $item['count'] > 0 ? $item['count'] : 'One or more';
$output .= '<li class="scanner-result">';
$title = t('#%nid: %title', array(
'%nid' => $item['nid'],
'%title' => $item['title'],
$title = t('#@nid: @title', array(
'@nid' => $item['nid'],
'@title' => $item['title'],
));
$output .= '<span class="scanner-title">' . l($title, 'node/' . $item['nid']) . '</span><br />';
$output .= '<span class="scanner-info">[' . $item['count'] . ' matches in ' . $item['type'] . ' ' . $item['field_label'] . ' field:]</span><br />';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment