diff options
author | Andrew Dolgov <[email protected]> | 2013-08-02 14:47:34 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-08-02 14:47:34 +0400 |
commit | 00f22824d7add7c49713e48f936bcb804c3741f6 (patch) | |
tree | 2cb5ae9f65d0c8532397e8900611db996306e915 /include/rssfuncs.php | |
parent | d208abc933e7f1499189a219d5c6f36ba585719f (diff) |
rss: force language to 2 characters; run house keeping hooks properly
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index e6866182b..65855754b 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -574,7 +574,7 @@ if (count($entry_language) > 0) { $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); } @@ -1379,9 +1379,7 @@ _debug("Cleaned $rc cached tags."); - foreach ($pluginhost->get_hooks(PluginHost::HOOK_HOUSE_KEEPING) as $plugin) { - $plugin->hook_house_keeping(); - } + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_HOUSE_KEEPING, "hook_house_keeping", ""); } ?> |