updated to the new Pikotools api (new Space struct)

This commit is contained in:
2021-04-09 17:50:58 +02:00
parent 00b980e74b
commit 35e10ed469
52 changed files with 795 additions and 736 deletions

View File

@@ -80,11 +80,11 @@ bool Reply::HasAccess()
return false;
PT::Space * thread_space = cur->request->item.item_content.meta_admin.FindSpace(L"thread");
PT::Space * thread_space = cur->request->item.item_content.meta_admin.find_child_space(L"thread");
if( thread_space )
{
if( thread_space->Bool(L"closed", false) )
if( thread_space->to_bool(L"closed", false) )
return false;
}

View File

@@ -231,7 +231,7 @@ return DoCommand(query);
long TDb::FindLastAnswer(long file_id)
{
PGresult * r = 0;
Error status = WINIX_ERR_OK;
//Error status = WINIX_ERR_OK;
long last_item_id = -1;
try
@@ -249,7 +249,7 @@ long TDb::FindLastAnswer(long file_id)
}
catch(const Error & e)
{
status = e;
//status = e;
}
ClearResult(r);