From 4e2dff4591bb2062311c1d5bfcdca3ade2a76d16 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 9 Jan 2022 18:21:40 +0100 Subject: Add spell checking with typos (#4138) * Add spell checking with typos Implement https://github.com/FreshRSS/FreshRSS/pull/4134#issuecomment-1008027558 * GitHub Actions attempt * Quiet wget * Makefile --- lib/lib_opml.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/lib_opml.php') diff --git a/lib/lib_opml.php b/lib/lib_opml.php index 3dd415d05..5c111641b 100644 --- a/lib/lib_opml.php +++ b/lib/lib_opml.php @@ -131,17 +131,17 @@ function preprocessing_categories($doc) { foreach ($outlines as $outline) { $category = trim($outline->getAttribute('category')); if ($category != '') { - $outline_categorie = null; + $outline_category = null; if (!isset($outline_categories[$category])) { - $outline_categorie = $doc->createElement('outline'); - $outline_categorie->setAttribute('text', $category); - $body->insertBefore($outline_categorie, $body->firstChild); - $outline_categories[$category] = $outline_categorie; + $outline_category = $doc->createElement('outline'); + $outline_category->setAttribute('text', $category); + $body->insertBefore($outline_category, $body->firstChild); + $outline_categories[$category] = $outline_category; } else { - $outline_categorie = $outline_categories[$category]; + $outline_category = $outline_categories[$category]; } $outline->parentNode->removeChild($outline); - $outline_categorie->appendChild($outline); + $outline_category->appendChild($outline); } } } -- cgit v1.2.3