cosmetic
parent
d5475e2e87
commit
bf436f5080
|
@ -99,7 +99,7 @@ class Logs extends CleanerParent
|
||||||
$sql = new DeleteStatement();
|
$sql = new DeleteStatement();
|
||||||
$sql->from(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME)
|
$sql->from(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME)
|
||||||
->where('log_table = ' . $sql->quote((string) $ns))
|
->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();
|
->delete();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -26,7 +26,7 @@ use Exception;
|
||||||
*/
|
*/
|
||||||
class Uninstaller
|
class Uninstaller
|
||||||
{
|
{
|
||||||
/** @var string The Uninstall class name */
|
/** @var string The module Uninstall class name */
|
||||||
public const UNINSTALL_CLASS_NAME = 'Uninstall';
|
public const UNINSTALL_CLASS_NAME = 'Uninstall';
|
||||||
|
|
||||||
/** @var CleanersStack $cleaners The cleaners stack */
|
/** @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
|
* Direct actions will be called from behavior xxxBeforeDelete and
|
||||||
* user will NOT be prompted before these actions execution.
|
* user will NOT be prompted before these actions execution.
|
||||||
* Note: If module is disabled, direct actions are not executed.
|
* Note: If module is disabled, direct actions are not executed.
|
||||||
|
|
Loading…
Reference in New Issue