master
Jean-Christian Paul Denis 2023-05-31 20:56:01 +02:00
parent d5475e2e87
commit bf436f5080
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ class Logs extends CleanerParent
$sql = new DeleteStatement();
$sql->from(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME)
->where('log_table = ' . $sql->quote((string) $ns))
->and($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
//->and($sql->orGroup(['blog_id IS NULL', 'blog_id IS NOT NULL']))
->delete();
return true;

View File

@ -26,7 +26,7 @@ use Exception;
*/
class Uninstaller
{
/** @var string The Uninstall class name */
/** @var string The module Uninstall class name */
public const UNINSTALL_CLASS_NAME = 'Uninstall';
/** @var CleanersStack $cleaners The cleaners stack */
@ -156,9 +156,9 @@ class Uninstaller
}
/**
* Add a predefined action to direct unsintall features.
* Add a predefined action to direct uninstall features.
*
* This method should be called from module Uninstall::proces() method.
* This method should be called from module Uninstall::process() method.
* Direct actions will be called from behavior xxxBeforeDelete and
* user will NOT be prompted before these actions execution.
* Note: If module is disabled, direct actions are not executed.