forked from ZwiiCMS-Team/ZwiiCMS
Effacement autorisé si DELETE = TRUE OU NON DEFINI et module pas mis en oeuvre
This commit is contained in:
parent
75539e2ef1
commit
d75d78fa31
@ -84,7 +84,8 @@ class addon extends common {
|
|||||||
$infoModules[$key]['realName'],
|
$infoModules[$key]['realName'],
|
||||||
$infoModules[$key]['version'],
|
$infoModules[$key]['version'],
|
||||||
implode(', ', array_keys($inPagesTitle,$key)),
|
implode(', ', array_keys($inPagesTitle,$key)),
|
||||||
array_key_exists('delete',$infoModules[$key]) && $infoModules[$key]['delete'] === true && implode(', ',array_keys($inPages,$key)) ===''
|
//array_key_exists('delete',$infoModules[$key]) && $infoModules[$key]['delete'] === true && implode(', ',array_keys($inPages,$key)) === ''
|
||||||
|
($infoModules[$key]['delete'] === false || $infoModules[$key]['delete'] !== false ) && implode(', ',array_keys($inPages,$key)) === ''
|
||||||
? template::button('moduleDelete' . $key, [
|
? template::button('moduleDelete' . $key, [
|
||||||
'class' => 'moduleDelete buttonRed',
|
'class' => 'moduleDelete buttonRed',
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/moduleDelete/' . $key . '/' . $_SESSION['csrf'],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/moduleDelete/' . $key . '/' . $_SESSION['csrf'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user