Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into develop

This commit is contained in:
Laurent Destailleur 2012-05-07 17:07:13 +02:00
commit c904e3e4b3
3 changed files with 12 additions and 11 deletions

View File

@ -603,7 +603,7 @@ Before=Avant
After=Après After=Après
IPAddress=Adresse IP IPAddress=Adresse IP
Frequency=Fréquence Frequency=Fréquence
IM=Messagerie instantannée IM=Messagerie instantanée
NewAttribute=Nouvel attribut NewAttribute=Nouvel attribut
AttributeCode=Code de l'attribut AttributeCode=Code de l'attribut
OptionalFieldsSetup=Configuration des attributs complémentaires OptionalFieldsSetup=Configuration des attributs complémentaires

View File

@ -781,7 +781,9 @@ if (! function_exists("llxHeader"))
{ {
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring); top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring);
if (empty($conf->global->MAIN_HIDE_LEFT_MENU)) {
left_menu('', $help_url, '', '', 1, $title); left_menu('', $help_url, '', '', 1, $title);
}
main_area($title); main_area($title);
} }
} }
@ -1176,7 +1178,6 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
$top_menu=empty($conf->browser->phone)?$conf->top_menu:$conf->smart_menu; $top_menu=empty($conf->browser->phone)?$conf->top_menu:$conf->smart_menu;
if (GETPOST('menu')) $top_menu=GETPOST('menu'); // menu=eldy_backoffice.php if (GETPOST('menu')) $top_menu=GETPOST('menu'); // menu=eldy_backoffice.php
// Load the top menu manager
// Load the top menu manager (only if not already done) // Load the top menu manager (only if not already done)
if (! class_exists('MenuTop')) if (! class_exists('MenuTop'))
{ {

View File

@ -46,7 +46,7 @@ if (! empty($conf->global->MAIN_USE_ADVANCED_PERMS))
{ {
$canreaduser=($user->admin || ($user->rights->user->user->lire && $user->rights->user->user_advance->readperms)); $canreaduser=($user->admin || ($user->rights->user->user->lire && $user->rights->user->user_advance->readperms));
$caneditselfperms=($user->id == $id && $user->rights->user->self_advance->writeperms); $caneditselfperms=($user->id == $id && $user->rights->user->self_advance->writeperms);
$caneditperms = (($caneditperms || $caneditselfperms) ? 0 : 1); $caneditperms = (($caneditperms || $caneditselfperms) ? 1 : 0);
} }
// Security check // Security check