fixed: session logger didn't have 'cur' and 'locale' pointers set

but this is a temporary fix, the session logger will be moved to Session class
This commit is contained in:
Tomasz Sowa 2021-01-25 17:55:07 +01:00
parent 05b3525863
commit 499db7e3eb
1 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2010-2018, Tomasz Sowa
* Copyright (c) 2010-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -118,6 +118,13 @@ FunctionBase * Functions::Find(const std::wstring & function_name)
if( i == table.end() )
return 0;
FunctionBase * fun = i->second;
// this is to set 'cur' and 'locale' for slog, but in the future slog will be moved to Session
fun->set_cur(cur);
fun->set_locale(locale);
//
return i->second;
}