updated to the new Pikotools api (new Space struct)
This commit is contained in:
@@ -62,10 +62,10 @@ bool Meta::HasAccess()
|
||||
|
||||
bool Meta::Parse(const std::wstring & meta_str)
|
||||
{
|
||||
space.Clear();
|
||||
space.clear();
|
||||
conf_parser.SetSpace(space);
|
||||
|
||||
return (conf_parser.ParseString(meta_str) == PT::SpaceParser::ok);
|
||||
return (conf_parser.ParseSpace(meta_str) == PT::SpaceParser::ok);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,10 +91,10 @@ bool Meta::EditAdminMeta(Item & item, const std::wstring & meta_str, bool use_se
|
||||
}
|
||||
else
|
||||
{
|
||||
log << log2 << "Meta: Syntax error in line: " << conf_parser.line << logend;
|
||||
log << log2 << "Meta: Syntax error in line: " << conf_parser.get_last_parsed_line() << logend;
|
||||
|
||||
if( use_ses_log )
|
||||
slog << logerror << T("syntax_error_in_line") << ' ' << conf_parser.line << logend;
|
||||
slog << logerror << T("syntax_error_in_line") << ' ' << conf_parser.get_last_parsed_line() << logend;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -122,10 +122,10 @@ bool Meta::EditMeta(Item & item, const std::wstring & meta_str, bool use_ses_log
|
||||
}
|
||||
else
|
||||
{
|
||||
log << log2 << "Meta: Syntax error in line: " << conf_parser.line << logend;
|
||||
log << log2 << "Meta: Syntax error in line: " << conf_parser.get_last_parsed_line() << logend;
|
||||
|
||||
if( use_ses_log )
|
||||
slog << logerror << T("syntax_error_in_line") << ' ' << conf_parser.line << logend;
|
||||
slog << logerror << T("syntax_error_in_line") << ' ' << conf_parser.get_last_parsed_line() << logend;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user