do not show lists if plugin is not configured
This commit is contained in:
parent
fbcb95a057
commit
84dd3f482a
@ -260,12 +260,12 @@ dcPage::breadcrumb([
|
|||||||
]) .
|
]) .
|
||||||
dcPage::notices();
|
dcPage::notices();
|
||||||
|
|
||||||
if (dcCore::app()->error->flag()) {
|
if (dcCore::app()->error->flag() || !$is_configured) {
|
||||||
echo
|
echo
|
||||||
'<p class="warning">' . __('pacKman is not well configured.') . ' ' .
|
'<div class="warning">' . __('pacKman is not well configured.') . ' ' .
|
||||||
'<a href="plugins.php?module=pacKman&conf=1&redir=' .
|
'<a href="plugins.php?module=pacKman&conf=1&redir=' .
|
||||||
urlencode('plugin.php?p=pacKman') . '">' . __('Configuration') . '</a>' .
|
urlencode('plugin.php?p=pacKman') . '">' . __('Configuration') . '</a>' .
|
||||||
'</p>';
|
'</div>';
|
||||||
} else {
|
} else {
|
||||||
$repo_path_modules = array_merge(
|
$repo_path_modules = array_merge(
|
||||||
dcPackman::getPackages(dirname($repo_path . '/' . $s->packman_pack_filename)),
|
dcPackman::getPackages(dirname($repo_path . '/' . $s->packman_pack_filename)),
|
||||||
|
Loading…
Reference in New Issue
Block a user