WIP: remove the old database abstraction layer
remove such classes: - DbBase - DbConn - DbTextStream - Db while here: - remove: TextStream, SLog, TexTextStream
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011-2021, Tomasz Sowa
|
||||
* Copyright (c) 2011-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -68,7 +68,7 @@ bool Meta::Parse(const std::wstring & meta_str)
|
||||
|
||||
|
||||
|
||||
bool Meta::EditAdminMeta(Item & item, const std::wstring & meta_str, bool use_ses_log)
|
||||
bool Meta::EditAdminMeta(Item & item, const std::wstring & meta_str)
|
||||
{
|
||||
if( Parse(meta_str) )
|
||||
{
|
||||
@@ -90,8 +90,8 @@ bool Meta::EditAdminMeta(Item & item, const std::wstring & meta_str, bool use_se
|
||||
{
|
||||
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.get_last_parsed_line() << logend;
|
||||
// if( use_ses_log )
|
||||
// slog << logerror << T("syntax_error_in_line") << ' ' << conf_parser.get_last_parsed_line() << logend;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -99,7 +99,7 @@ return false;
|
||||
|
||||
|
||||
|
||||
bool Meta::EditMeta(Item & item, const std::wstring & meta_str, bool use_ses_log)
|
||||
bool Meta::EditMeta(Item & item, const std::wstring & meta_str)
|
||||
{
|
||||
if( Parse(meta_str) )
|
||||
{
|
||||
@@ -121,8 +121,8 @@ bool Meta::EditMeta(Item & item, const std::wstring & meta_str, bool use_ses_log
|
||||
{
|
||||
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.get_last_parsed_line() << logend;
|
||||
// if( use_ses_log )
|
||||
// slog << logerror << T("syntax_error_in_line") << ' ' << conf_parser.get_last_parsed_line() << logend;
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -138,7 +138,7 @@ void Meta::ChangeAdminMeta()
|
||||
{
|
||||
const std::wstring & meta_str = cur->request->PostVar(L"itemmeta");
|
||||
|
||||
if( EditAdminMeta(*cur->request->last_item, meta_str, true) )
|
||||
if( EditAdminMeta(*cur->request->last_item, meta_str) )
|
||||
{
|
||||
system->RedirectToLastItem();
|
||||
}
|
||||
@@ -152,7 +152,7 @@ void Meta::ChangeMeta()
|
||||
{
|
||||
const std::wstring & meta_str = cur->request->PostVar(L"itemmeta");
|
||||
|
||||
if( EditMeta(*cur->request->last_item, meta_str, true) )
|
||||
if( EditMeta(*cur->request->last_item, meta_str) )
|
||||
{
|
||||
system->RedirectToLastItem();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user