do not show lists if plugin is not configured

This commit is contained in:
Jean-Christian Paul Denis 2022-11-26 22:02:02 +01:00
parent fbcb95a057
commit 84dd3f482a
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -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&amp;conf=1&amp;redir=' . '<a href="plugins.php?module=pacKman&amp;conf=1&amp;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)),