Merge pull request #5781 from annando/issue-5768

Issue 5768: This logging should help finding the origin of the problem
This commit is contained in:
Tobias Diekershoff 2018-09-22 10:54:10 +02:00 committed by GitHub
commit 1a16876995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,6 +183,10 @@ class L10n extends BaseObject
{ {
$a = self::getApp(); $a = self::getApp();
if (!is_numeric($count)) {
logger('Non numeric count called by ' . System::callstack(20));
}
$lang = Config::get('system', 'language'); $lang = Config::get('system', 'language');
if (!empty($a->strings[$singular])) { if (!empty($a->strings[$singular])) {