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;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Context::get('prevent_redeclare') !== 'Y')
|
||||||
|
{
|
||||||
|
$output = executeQuery('comment.deleteDeclaredCommentLog', $args);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,10 +117,14 @@ class DocumentAdminController extends Document
|
||||||
{
|
{
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
|
|
||||||
if (!$output->toBool())
|
if(Context::get('prevent_redeclare') !== 'Y')
|
||||||
{
|
{
|
||||||
return $output;
|
$output = executeQuery('document.deleteDocumentDeclaredLog', $args);
|
||||||
|
if (!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue