cosmetic
This commit is contained in:
parent
fa6bcd6794
commit
a13a21252d
@ -99,8 +99,8 @@ class Settings extends AbstractCleaner
|
|||||||
->group('setting_ns');
|
->group('setting_ns');
|
||||||
|
|
||||||
$res = $sql->select();
|
$res = $sql->select();
|
||||||
$rs = [];
|
$rs = [];
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($res->fetch()) {
|
while ($res->fetch()) {
|
||||||
$sql = new SelectStatement();
|
$sql = new SelectStatement();
|
||||||
$sql->from(dcCore::app()->prefix . dcNamespace::NS_TABLE_NAME)
|
$sql->from(dcCore::app()->prefix . dcNamespace::NS_TABLE_NAME)
|
||||||
|
@ -59,7 +59,7 @@ class Manage extends dcNsProcess
|
|||||||
dcCore::app()->themes->loadModules((string) dcCore::app()->blog?->themes_path);
|
dcCore::app()->themes->loadModules((string) dcCore::app()->blog?->themes_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
$define = dcCore::app()->{$type .'s'}->getDefine($_REQUEST['id']);
|
$define = dcCore::app()->{$type . 's'}->getDefine($_REQUEST['id']);
|
||||||
if (!$define->isDefined()) {
|
if (!$define->isDefined()) {
|
||||||
dcCore::app()->error->add(__('Unknown module id to uninstall'));
|
dcCore::app()->error->add(__('Unknown module id to uninstall'));
|
||||||
dcCore::app()->adminurl?->redirect($redir[0], $redir[1], $redir[2]);
|
dcCore::app()->adminurl?->redirect($redir[0], $redir[1], $redir[2]);
|
||||||
@ -111,7 +111,7 @@ class Manage extends dcNsProcess
|
|||||||
|
|
||||||
$type = $_REQUEST['type'] == 'theme' ? 'theme' : 'plugin';
|
$type = $_REQUEST['type'] == 'theme' ? 'theme' : 'plugin';
|
||||||
$redir = $type == 'theme' ? ['admin.blog.theme', [], '#themes'] : ['admin.plugins', [], '#plugins'];
|
$redir = $type == 'theme' ? ['admin.blog.theme', [], '#themes'] : ['admin.plugins', [], '#plugins'];
|
||||||
$define = dcCore::app()->{$type .'s'}->getDefine($_REQUEST['id']);
|
$define = dcCore::app()->{$type . 's'}->getDefine($_REQUEST['id']);
|
||||||
$uninstaller = Uninstaller::instance()->loadModules([$define]);
|
$uninstaller = Uninstaller::instance()->loadModules([$define]);
|
||||||
$fields = [];
|
$fields = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user