Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
40f54275
Commit
40f54275
authored
12 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: broken features, ready for doliforge
parent
cd3d0112
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/admin/ihm.php
+25
-3
25 additions, 3 deletions
htdocs/admin/ihm.php
htdocs/main.inc.php
+1
-1
1 addition, 1 deletion
htdocs/main.inc.php
with
26 additions
and
4 deletions
htdocs/admin/ihm.php
+
25
−
3
View file @
40f54275
<?php
/* Copyright (C) 2001-2005
Rodolphe Quiedeville
<rodolphe@quiedeville.org>
* Copyright (C) 2004-2011
Laurent Destailleur
<eldy@users.sourceforge.net>
* Copyright (C) 2005-201
0
Regis Houssin
<regis@dolibarr.fr>
/* Copyright (C) 2001-2005
Rodolphe Quiedeville
<rodolphe@quiedeville.org>
* Copyright (C) 2004-2011
Laurent Destailleur
<eldy@users.sourceforge.net>
* Copyright (C) 2005-201
2
Regis Houssin
<regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -76,6 +76,7 @@ if ($action == 'update')
// This one is not always defined
if
(
isset
(
$_POST
[
"MAIN_USE_PREVIEW_TABS"
]))
dolibarr_set_const
(
$db
,
"MAIN_USE_PREVIEW_TABS"
,
$_POST
[
"MAIN_USE_PREVIEW_TABS"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
if
(
isset
(
$_POST
[
"MAIN_BUGTRACK_ENABLELINK"
]))
dolibarr_set_const
(
$db
,
"MAIN_BUGTRACK_ENABLELINK"
,
$_POST
[
"MAIN_BUGTRACK_ENABLELINK"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
$_SESSION
[
"mainmenu"
]
=
""
;
// Le gestionnaire de menu a pu changer
...
...
@@ -235,6 +236,17 @@ if ($action == 'edit') // Edit
print
'<td width="20"> </td>'
;
print
'</tr>'
;
if
(
$conf
->
global
->
MAIN_FEATURES_LEVEL
>
1
)
{
// Show bugtrack link
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td width="35%">'
.
$langs
->
trans
(
"ShowBugTrackLink"
)
.
'</td><td>'
;
print
$form
->
selectyesno
(
'MAIN_BUGTRACK_ENABLELINK'
,
$conf
->
global
->
MAIN_BUGTRACK_ENABLELINK
,
1
);
print
'</td>'
;
print
'<td width="20"> </td>'
;
print
'</tr>'
;
}
// Message on login page
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td width="35%">'
.
$langs
->
trans
(
"MessageLogin"
)
.
'</td><td colspan="2">'
;
...
...
@@ -378,6 +390,16 @@ else // Show
print
yn
((
isset
(
$conf
->
global
->
MAIN_HELP_DISABLELINK
)
?
$conf
->
global
->
MAIN_HELP_DISABLELINK
:
0
),
1
);
print
'</td></tr>'
;
if
(
$conf
->
global
->
MAIN_FEATURES_LEVEL
>
1
)
{
// Show bugtrack link
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'"><td width="35%">'
.
$langs
->
trans
(
"ShowBugTrackLink"
)
.
'</td><td>'
;
print
yn
(
$conf
->
global
->
MAIN_BUGTRACK_ENABLELINK
)
.
"</td>"
;
print
'<td width="20"> </td>'
;
print
"</tr>"
;
}
// Message login
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td width="35%">'
.
$langs
->
trans
(
"MessageLogin"
)
.
'</td><td colspan="2">'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/main.inc.php
+
1
−
1
View file @
40f54275
...
...
@@ -1512,7 +1512,7 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
}
// Link to bugtrack
if
(
!
empty
(
$conf
->
global
->
MAIN_
SHOW_
BUGTRACK_LINK
))
if
(
!
empty
(
$conf
->
global
->
MAIN_BUGTRACK_
ENABLE
LINK
))
{
require_once
DOL_DOCUMENT_ROOT
.
'/core/lib/functions2.lib.php'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment