updated to the current pikotools api from branch api2021
This commit is contained in:
@@ -143,7 +143,7 @@ bool ExportInfo::SkipDir(long dir_id, std::wstring & dir)
|
||||
{
|
||||
if( system->dirs.MakePath(dir_id, tmp_dir) )
|
||||
{
|
||||
if( !tmp_dir.empty() && PT::IsSubString(tmp_dir, dir) )
|
||||
if( !tmp_dir.empty() && PT::is_substr(tmp_dir, dir) )
|
||||
{
|
||||
// tmp_dir has a slash at the end
|
||||
// we want the slash at the beginning
|
||||
|
||||
@@ -393,13 +393,13 @@ bool ExportThread::HasThumbInAdress(std::string & buf, size_t i)
|
||||
|
||||
for( ; i<buf.size() ; ++i)
|
||||
{
|
||||
if( PT::IsSubStringp(thumb1, &buf[i]) )
|
||||
if( PT::is_substr(thumb1, &buf[i]) )
|
||||
{
|
||||
buf.erase(i, len1);
|
||||
return true;
|
||||
}
|
||||
|
||||
if( PT::IsSubStringp(thumb2, &buf[i]) )
|
||||
if( PT::is_substr(thumb2, &buf[i]) )
|
||||
{
|
||||
buf.erase(i, len2);
|
||||
return true;
|
||||
@@ -427,7 +427,7 @@ void ExportThread::ChangeAdressesThumb(std::string & buf, const char * http_pref
|
||||
|
||||
for(size_t i=0 ; i<buf.size() ; ++i)
|
||||
{
|
||||
if( PT::IsSubStringp(look_for_url.c_str(), &buf[i]) )
|
||||
if( PT::is_substr(look_for_url.c_str(), &buf[i]) )
|
||||
{
|
||||
i += look_for_url.size() - 1; // without skipping the last slash
|
||||
|
||||
|
||||
@@ -583,13 +583,13 @@ PostFileTab::iterator i2;
|
||||
{
|
||||
// !! CHECKME why ticket_form_prefix is in the global config?
|
||||
// (this is a plugin variable)
|
||||
if( PT::IsSubString(config->ticket_form_prefix, i->first) )
|
||||
if( PT::is_substr(config->ticket_form_prefix, i->first) )
|
||||
{
|
||||
long param_id = Tol(i->first.c_str() + config->ticket_form_prefix.size());
|
||||
ReadTicketParam(ticket, param_id, i->second, meta);
|
||||
}
|
||||
|
||||
if( PT::IsSubString(ticket_delete_prefix, i->first) )
|
||||
if( PT::is_substr(ticket_delete_prefix, i->first) )
|
||||
{
|
||||
long file_id = Tol(i->first.c_str() + ticket_delete_prefix.size());
|
||||
|
||||
@@ -602,7 +602,7 @@ PostFileTab::iterator i2;
|
||||
|
||||
for(i2=cur->request->post_file_tab.begin() ; i2!=cur->request->post_file_tab.end() ; ++i2)
|
||||
{
|
||||
if( PT::IsSubString(config->ticket_form_prefix, i2->first) )
|
||||
if( PT::is_substr(config->ticket_form_prefix, i2->first) )
|
||||
ReadTicketParam(Tol(i2->first.c_str() + config->ticket_form_prefix.size()), i2->second, meta);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user