|
@@ 832-837 (lines=6) @@
|
| 829 |
|
$did_you_mean['display'][] = $smcFunc['htmlspecialchars']($word); |
| 830 |
|
continue; |
| 831 |
|
} |
| 832 |
|
elseif (spell_check($link, $word)) |
| 833 |
|
{ |
| 834 |
|
$did_you_mean['search'][] = $word; |
| 835 |
|
$did_you_mean['display'][] = $smcFunc['htmlspecialchars']($word); |
| 836 |
|
continue; |
| 837 |
|
} |
| 838 |
|
|
| 839 |
|
$suggestions = spell_suggest($link, $word); |
| 840 |
|
foreach ($suggestions as $i => $s) |
|
@@ 858-862 (lines=5) @@
|
| 855 |
|
$did_you_mean['display'][] = '<em><strong>' . $smcFunc['htmlspecialchars']($suggestions[0]) . '</strong></em>'; |
| 856 |
|
$found_misspelling = true; |
| 857 |
|
} |
| 858 |
|
else |
| 859 |
|
{ |
| 860 |
|
$did_you_mean['search'][] = $word; |
| 861 |
|
$did_you_mean['display'][] = $smcFunc['htmlspecialchars']($word); |
| 862 |
|
} |
| 863 |
|
} |
| 864 |
|
|
| 865 |
|
if ($found_misspelling) |