use abstract plugin name
This commit is contained in:
parent
3a6fd2bb26
commit
f4e8e597a5
@ -18,13 +18,13 @@ $this->registerModule(
|
|||||||
'dcLog',
|
'dcLog',
|
||||||
'Displays Dotclear logs',
|
'Displays Dotclear logs',
|
||||||
'Tomtom (http://blog.zenstyle.fr) and Contributors',
|
'Tomtom (http://blog.zenstyle.fr) and Contributors',
|
||||||
'1.1',
|
'1.1.1',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.24']],
|
'requires' => [['core', '2.24']],
|
||||||
'permissions' => null,
|
'permissions' => null,
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://github.com/JcDenis/dcLog',
|
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/dcLog',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/dcLog/master/dcstore.xml',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
16
index.php
16
index.php
@ -30,7 +30,7 @@ if (isset($_POST['del_logs']) || isset($_POST['del_all_logs'])) {
|
|||||||
__('All logs have been successfully deleted') :
|
__('All logs have been successfully deleted') :
|
||||||
__('Selected logs have been successfully deleted')
|
__('Selected logs have been successfully deleted')
|
||||||
);
|
);
|
||||||
dcCore::app()->adminurl->redirect('admin.plugin.dcLog');
|
dcCore::app()->adminurl->redirect('admin.plugin.' . basename(__DIR__));
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
dcCore::app()->error->add($e->getMessage());
|
dcCore::app()->error->add($e->getMessage());
|
||||||
}
|
}
|
||||||
@ -58,12 +58,12 @@ dcPage::jsJson('dclog_list', [
|
|||||||
'confirm_delete_selected_log' => __('Are you sure you want to delete selected logs?'),
|
'confirm_delete_selected_log' => __('Are you sure you want to delete selected logs?'),
|
||||||
'confirm_delete_all_log' => __('Are you sure you want to delete all logs?'),
|
'confirm_delete_all_log' => __('Are you sure you want to delete all logs?'),
|
||||||
]) .
|
]) .
|
||||||
$filter->js(dcCore::app()->adminurl->get('admin.plugin.dcLog')) .
|
$filter->js(dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__))) .
|
||||||
dcPage::jsLoad(dcPage::getPF('dcLog/js/dclog.js')) .
|
dcPage::jsLoad(dcPage::getPF(basename(__DIR__) . '/js/dclog.js')) .
|
||||||
'</head><body>' .
|
'</head><body>' .
|
||||||
dcPage::breadcrumb([
|
dcPage::breadcrumb([
|
||||||
__('System') => '',
|
__('System') => '',
|
||||||
__('Log') => dcCore::app()->adminurl->get('admin.plugin.dcLog'),
|
__('Log') => dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__)),
|
||||||
]) .
|
]) .
|
||||||
dcPage::notices();
|
dcPage::notices();
|
||||||
|
|
||||||
@ -72,13 +72,13 @@ if (isset($logs) && isset($logs_list)) {
|
|||||||
echo '<p>' . __('There are no logs') . '</p>';
|
echo '<p>' . __('There are no logs') . '</p>';
|
||||||
} else {
|
} else {
|
||||||
$filter->display(
|
$filter->display(
|
||||||
'admin.plugin.dcLog',
|
'admin.plugin.' . basename(__DIR__),
|
||||||
form::hidden('p', 'dcLog')
|
form::hidden('p', basename(__DIR__))
|
||||||
);
|
);
|
||||||
$logs_list->display(
|
$logs_list->display(
|
||||||
$filter->__get('page'),
|
$filter->__get('page'),
|
||||||
$filter->__get('nb'),
|
$filter->__get('nb'),
|
||||||
'<form action="' . dcCore::app()->adminurl->get('admin.plugin.dcLog') . '" method="post" id="form-entries">' .
|
'<form action="' . dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__)) . '" method="post" id="form-entries">' .
|
||||||
|
|
||||||
'%s' .
|
'%s' .
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ if (isset($logs) && isset($logs_list)) {
|
|||||||
'<input type="submit" value="' . __('Delete all logs') . '" name="del_all_logs" />' .
|
'<input type="submit" value="' . __('Delete all logs') . '" name="del_all_logs" />' .
|
||||||
'</p>' .
|
'</p>' .
|
||||||
|
|
||||||
dcCore::app()->adminurl->getHiddenFormFields('admin.plugin.dcLog', $filter->values()) .
|
dcCore::app()->adminurl->getHiddenFormFields('admin.plugin.' . basename(__DIR__), $filter->values()) .
|
||||||
dcCore::app()->formNonce() .
|
dcCore::app()->formNonce() .
|
||||||
'</div>' .
|
'</div>' .
|
||||||
'</form>',
|
'</form>',
|
||||||
|
Loading…
Reference in New Issue
Block a user