cosmetic
This commit is contained in:
parent
e176ff703f
commit
7a2145d2e2
@ -21,7 +21,6 @@ use dcPage;
|
||||
/* clearbricks ns */
|
||||
use form;
|
||||
use http;
|
||||
use path;
|
||||
|
||||
/* php ns */
|
||||
use Exception;
|
||||
|
@ -61,7 +61,7 @@ class Manage
|
||||
$type = isset($_POST['type']) && in_array($_POST['type'], ['plugins', 'themes', 'repository']) ? $_POST['type'] : '';
|
||||
|
||||
# Settings
|
||||
$s = dcCore::app()->blog->settings->get(Core::id());
|
||||
$s = dcCore::app()->blog->settings->get(Core::id());
|
||||
$dir = Utils::getRepositoryDir($s->get('pack_repository'));
|
||||
|
||||
# Modules
|
||||
@ -172,7 +172,7 @@ class Manage
|
||||
|
||||
# Delete
|
||||
} elseif ($action == 'delete') {
|
||||
$del_success= false;
|
||||
$del_success = false;
|
||||
foreach ($_POST['modules'] as $root => $id) {
|
||||
if (!file_exists($root) || !files::isDeletable($root)) {
|
||||
dcPage::addWarningNotice(sprintf(__('Undeletable file "%s"', $root)));
|
||||
@ -287,7 +287,7 @@ class Manage
|
||||
}
|
||||
|
||||
# Settings
|
||||
$s = dcCore::app()->blog->settings->get(Core::id());
|
||||
$s = dcCore::app()->blog->settings->get(Core::id());
|
||||
$dir = Utils::getRepositoryDir($s->get('pack_repository'));
|
||||
|
||||
$is_configured = Utils::is_configured(
|
||||
|
@ -24,6 +24,9 @@ use form;
|
||||
use html;
|
||||
use path;
|
||||
|
||||
/* php */
|
||||
use Exception;
|
||||
|
||||
class Utils
|
||||
{
|
||||
public static function is_configured(string $repo, string $file_a, string $file_b): bool
|
||||
@ -235,8 +238,8 @@ class Utils
|
||||
]) . '" title="' . __('Download') . '">' .
|
||||
html::escapeHTML(basename($module['root'])) . '</a>' .
|
||||
'</td>' .
|
||||
'<td class="nowrap">' .
|
||||
html::escapeHTML(dt::str(__('%Y-%m-%d %H:%M'), (int) @filemtime($module['root']))) .
|
||||
'<td class="nowrap">' .
|
||||
html::escapeHTML(dt::str(__('%Y-%m-%d %H:%M'), (int) @filemtime($module['root']))) .
|
||||
'</td>' .
|
||||
'</tr>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user