mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -04:00
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
This commit is contained in:
1 parent
9dbbe924c5
commit
4e2dff4591
24 files changed
+119
-71
No files matched your search
+7
-7
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user