aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_opml.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-01-09 18:21:40 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-09 18:21:40 +0100
commit4e2dff4591bb2062311c1d5bfcdca3ade2a76d16 (patch)
treea876374a709f04f919b35ae8e1e53774a0aca39c /lib/lib_opml.php
parent9dbbe924c5e54b5dbe486873a9b31a28127c8e62 (diff)
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
Diffstat (limited to 'lib/lib_opml.php')
-rw-r--r--lib/lib_opml.php14
1 files changed, 7 insertions, 7 deletions
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);
}
}
}