Fix incorrect function name for deprecated functions

refs #12408
This commit is contained in:
Gunnar Beutner 2016-08-12 15:41:03 +02:00
parent b74014fa5e
commit 91577713fd
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ private:
void RegisterFunction(void) { \
Function::Ptr sf = new icinga::Function(#ns "#" #name, WrapFunction(callback), false); \
ScriptGlobal::Set(#ns "." #name, sf); \
Function::Ptr dsf = new icinga::Function("Deprecated#" #name " (deprecated)", WrapFunction(callback), false, true); \
Function::Ptr dsf = new icinga::Function("Deprecated#__" #name " (deprecated)", WrapFunction(callback), false, true); \
ScriptGlobal::Set("Deprecated.__" #name, dsf); \
} \
INITIALIZE_ONCE_WITH_PRIORITY(RegisterFunction, 10); \