mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Clean up declared log if prevent_redeclare != "N" #2238
This commit is contained in:
parent
35b5bcc030
commit
5cfd348096
2 changed files with 16 additions and 3 deletions
|
|
@ -417,6 +417,15 @@ class CommentAdminController extends Comment
|
|||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
if(Context::get('prevent_redeclare') !== 'Y')
|
||||
{
|
||||
$output = executeQuery('comment.deleteDeclaredCommentLog', $args);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@ class DocumentAdminController extends Document
|
|||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
if(Context::get('prevent_redeclare') !== 'Y')
|
||||
{
|
||||
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
|
||||
if (!$output->toBool())
|
||||
{
|
||||
|
|
@ -124,6 +127,7 @@ class DocumentAdminController extends Document
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all thumbnails
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue