]> git.mxchange.org Git - friendica.git/commitdiff
Add missing L10n::popLang calls
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 20 Oct 2018 13:02:10 +0000 (09:02 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 20 Oct 2018 13:02:10 +0000 (09:02 -0400)
include/enotify.php
src/Database/DBStructure.php

index 6d8cef87947194eea4f23aeb15e68be772cf0d99..5665f485f457f7754fee59570f82a689abac87d1 100644 (file)
@@ -134,6 +134,7 @@ function notification($params)
                $thread = Item::selectFirstThreadForUser($params['uid'] ,['ignored'], ['iid' => $parent_id]);
                if (DBA::isResult($thread) && $thread["ignored"]) {
                        logger("Thread ".$parent_id." will be ignored", LOGGER_DEBUG);
+                       L10n::popLang();
                        return;
                }
 
@@ -628,6 +629,7 @@ function notification($params)
                        '$content_allowed'      => $content_allowed,
                ]);
 
+               L10n::popLang();
                // use the Emailer class to send the message
                return Emailer::send(
                        [
@@ -643,6 +645,7 @@ function notification($params)
                );
        }
 
+       L10n::popLang();
        return false;
 }
 
index f8fc1651c140ece8dffd8385f65097bdf1561638..db775b59c105bf841c604ee48f782ec5f592ff93 100644 (file)
@@ -90,6 +90,7 @@ class DBStructure
                                'body'     => $body,
                                'language' => $lang]
                        );
+                       L10n::popLang();
                }
 
                //try the logger