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
4c6a3a0f
Commit
4c6a3a0f
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Title of page is second parameter
parent
be52d8b4
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
dev/skeletons/skeleton_page.php
+2
-2
2 additions, 2 deletions
dev/skeletons/skeleton_page.php
htdocs/admin/modules.php
+6
-6
6 additions, 6 deletions
htdocs/admin/modules.php
with
8 additions
and
8 deletions
dev/skeletons/skeleton_page.php
+
2
−
2
View file @
4c6a3a0f
...
...
@@ -89,7 +89,7 @@ if ($_REQUEST["action"] == 'add')
* Put here all code to build page
****************************************************/
llxHeader
(
'MyPageName'
,
''
,
''
);
llxHeader
(
'
'
,
'
MyPageName'
,
''
);
$form
=
new
Form
(
$db
);
...
...
@@ -104,7 +104,7 @@ $form=new Form($db);
* Put here code to view linked object
****************************************************/
$myobject
->
load_object_linked
(
$myobject
->
id
,
$myobject
->
element
);
foreach
(
$myobject
->
linked_object
as
$object
=>
$objectid
)
{
if
(
$conf
->
$object
->
enabled
)
...
...
This diff is collapsed.
Click to expand it.
htdocs/admin/modules.php
+
6
−
6
View file @
4c6a3a0f
...
...
@@ -115,7 +115,7 @@ function Activate($value,$withdeps=1)
$result
=
$objMod
->
init
();
if
(
$result
<=
0
)
$ret
=
$objMod
->
error
;
}
if
(
$withdeps
)
{
if
(
is_array
(
$objMod
->
depends
)
&&
!
empty
(
$objMod
->
depends
))
...
...
@@ -129,7 +129,7 @@ function Activate($value,$withdeps=1)
}
}
}
if
(
is_array
(
$objMod
->
conflictwith
)
&&
!
empty
(
$objMod
->
conflictwith
))
{
// Desactivation des modules qui entrent en conflit
...
...
@@ -207,8 +207,8 @@ function UnActivate($value,$requiredby=1)
*/
$_SESSION
[
"mode"
]
=
$mode
;
$
wiki
help
=
'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones'
;
llxHeader
(
$langs
->
trans
(
"Setup"
),
''
,
$wikihelp
);
$help
_url
=
'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones'
;
llxHeader
(
''
,
$langs
->
trans
(
"Setup"
),
$help_url
);
print_fiche_titre
(
$langs
->
trans
(
"ModulesSetup"
),
''
,
'setup'
);
...
...
@@ -448,7 +448,7 @@ foreach ($orders as $key => $value)
if
(
!
empty
(
$conf
->
global
->
$const_name
))
{
$disableSetup
=
0
;
// Module actif
if
(
!
empty
(
$objMod
->
always_enabled
)
||
((
$conf
->
global
->
MAIN_MODULE_MULTICOMPANY
&&
$objMod
->
core_enabled
)
&&
(
$user
->
entity
||
$conf
->
entity
!=
1
)))
{
...
...
@@ -514,7 +514,7 @@ foreach ($orders as $key => $value)
// Module non actif
print
'<a href="modules.php?id='
.
$objMod
->
numero
.
'&action=set&value='
.
$modName
.
'&mode='
.
$mode
.
'">'
;
print
img_picto
(
$langs
->
trans
(
"Disabled"
),
'off'
);
print
img_picto
(
$langs
->
trans
(
"Disabled"
),
'off'
);
print
"</a></td>
\n
<td> </td>
\n
"
;
}
...
...
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