Add missing L10n::popLang calls
This commit is contained in:
parent
ec9f1563f9
commit
a8d3a4d218
|
@ -134,6 +134,7 @@ function notification($params)
|
||||||
$thread = Item::selectFirstThreadForUser($params['uid'] ,['ignored'], ['iid' => $parent_id]);
|
$thread = Item::selectFirstThreadForUser($params['uid'] ,['ignored'], ['iid' => $parent_id]);
|
||||||
if (DBA::isResult($thread) && $thread["ignored"]) {
|
if (DBA::isResult($thread) && $thread["ignored"]) {
|
||||||
logger("Thread ".$parent_id." will be ignored", LOGGER_DEBUG);
|
logger("Thread ".$parent_id." will be ignored", LOGGER_DEBUG);
|
||||||
|
L10n::popLang();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -628,6 +629,7 @@ function notification($params)
|
||||||
'$content_allowed' => $content_allowed,
|
'$content_allowed' => $content_allowed,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
L10n::popLang();
|
||||||
// use the Emailer class to send the message
|
// use the Emailer class to send the message
|
||||||
return Emailer::send(
|
return Emailer::send(
|
||||||
[
|
[
|
||||||
|
@ -643,6 +645,7 @@ function notification($params)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
L10n::popLang();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ class DBStructure
|
||||||
'body' => $body,
|
'body' => $body,
|
||||||
'language' => $lang]
|
'language' => $lang]
|
||||||
);
|
);
|
||||||
|
L10n::popLang();
|
||||||
}
|
}
|
||||||
|
|
||||||
//try the logger
|
//try the logger
|
||||||
|
|
Loading…
Reference in a new issue