From 05c1150477a6c6084a64d30436d6bb013b62659f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Mar 2018 15:13:22 +0100 Subject: [PATCH] Fix bad links --- htdocs/core/modules/modStripe.class.php | 79 +++++++++++++------------ 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/htdocs/core/modules/modStripe.class.php b/htdocs/core/modules/modStripe.class.php index 90a712fdbd8..8a11d6884db 100644 --- a/htdocs/core/modules/modStripe.class.php +++ b/htdocs/core/modules/modStripe.class.php @@ -106,47 +106,48 @@ class modStripe extends DolibarrModules 'user'=>2 ); // 0=Menu for internal users, 1=external users, 2=both $r++; - - $this->menu[$r] = array('fk_menu'=>'fk_mainmenu=bank', - 'type'=>'left', - 'titre'=>'StripeAccount', - 'mainmenu'=>'bank', - 'leftmenu'=>'stripe', - 'url' => '/stripe/charge.php', - 'langs' => 'stripe', - 'position' => 100, - 'enabled' => '1', - 'perms' => '$user->rights->banque->configurer', - 'target' => '', - 'user' => 0 + + $this->menu[$r] = array( + 'fk_menu'=>'fk_mainmenu=bank', + 'type'=>'left', + 'titre'=>'StripeAccount', + 'mainmenu'=>'bank', + 'leftmenu'=>'stripe', + 'url' => '/stripe/charge.php', + 'langs' => 'stripe', + 'position' => 100, + 'enabled' => '$conf->global->MAIN_FEATURES_LEVEL >= 2', + 'perms' => '$user->rights->banque->configurer', + 'target' => '', + 'user' => 0 ); - - $r ++; - $this->menu[$r] = array( - 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe', - 'type' => 'left', - 'titre' => 'StripeChargeList', - 'url' => '/stripe/charge.php', - 'langs' => 'stripe', - 'position' => 102, - 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled', - 'perms' => '$user->rights->banque->configurer', - 'target' => '', - 'user' => 0 - ); - - $r ++; + + $r++; $this->menu[$r] = array( - 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe', - 'type' => 'left', - 'titre' => 'StripeTransactionList', - 'url' => '/stripe/transaction.php', - 'langs' => 'stripe', - 'position' => 102, - 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled', - 'perms' => '$user->rights->banque->configurer', - 'target' => '', - 'user' => 0 + 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe', + 'type' => 'left', + 'titre' => 'StripeChargeList', + 'url' => '/stripe/charge.php', + 'langs' => 'stripe', + 'position' => 102, + 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled && $conf->global->MAIN_FEATURES_LEVEL >= 2', + 'perms' => '$user->rights->banque->configurer', + 'target' => '', + 'user' => 0 + ); + + $r++; + $this->menu[$r] = array( + 'fk_menu' => 'fk_mainmenu=bank,fk_leftmenu=stripe', + 'type' => 'left', + 'titre' => 'StripeTransactionList', + 'url' => '/stripe/transaction.php', + 'langs' => 'stripe', + 'position' => 102, + 'enabled' => '$conf->stripe->enabled && $conf->banque->enabled && $conf->global->MAIN_FEATURES_LEVEL >= 2', + 'perms' => '$user->rights->banque->configurer', + 'target' => '', + 'user' => 0 ); // Exports