mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:25:55 +00:00
rss: force language to 2 characters; run house keeping hooks properly
This commit is contained in:
@@ -574,7 +574,7 @@
|
|||||||
|
|
||||||
if (count($entry_language) > 0) {
|
if (count($entry_language) > 0) {
|
||||||
$entry_language = array_keys($entry_language);
|
$entry_language = array_keys($entry_language);
|
||||||
$entry_language = db_escape_string($entry_language[0]);
|
$entry_language = db_escape_string(substr($entry_language[0], 0, 2));
|
||||||
|
|
||||||
_debug("detected language: $entry_language", $debug_enabled);
|
_debug("detected language: $entry_language", $debug_enabled);
|
||||||
}
|
}
|
||||||
@@ -1379,9 +1379,7 @@
|
|||||||
|
|
||||||
_debug("Cleaned $rc cached tags.");
|
_debug("Cleaned $rc cached tags.");
|
||||||
|
|
||||||
foreach ($pluginhost->get_hooks(PluginHost::HOOK_HOUSE_KEEPING) as $plugin) {
|
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_HOUSE_KEEPING, "hook_house_keeping", "");
|
||||||
$plugin->hook_house_keeping();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user