From a8d3a4d218b9c844b7a5d4134fb7f27d64be559d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 20 Oct 2018 09:02:10 -0400 Subject: [PATCH] Add missing L10n::popLang calls --- include/enotify.php | 3 +++ src/Database/DBStructure.php | 1 + 2 files changed, 4 insertions(+) diff --git a/include/enotify.php b/include/enotify.php index 6d8cef8794..5665f485f4 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -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; } diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index f8fc1651c1..db775b59c1 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -90,6 +90,7 @@ class DBStructure 'body' => $body, 'language' => $lang] ); + L10n::popLang(); } //try the logger