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
98491ff2
Commit
98491ff2
authored
11 years ago
by
Jean-François Ferry
Committed by
jfefe
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix conflict
parent
06f17da1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
element_resource.php
+8
-6
8 additions, 6 deletions
element_resource.php
with
8 additions
and
6 deletions
element_resource.php
+
8
−
6
View file @
98491ff2
...
...
@@ -180,16 +180,18 @@ else
//print '/'.$modresources.'/class/'.$resource_obj.'.class.php<br />';
$path
=
''
;
if
(
strpos
(
$resource_obj
,
'@'
))
$path
.
=
'/'
.
$element_prop
[
'module'
];
$linked_resources
=
$object
->
getElementResources
(
$element
,
$element_id
,
$resource_obj
);
if
(
$mode
==
'add'
&&
$resource_obj
==
$resource_type
)
{
//print '/'.$element_prop['module'].'/core/tpl/resource_'.$element_prop['element'].'_'.$mode.'.tpl.php'.'<BR>';
$path
=
$element_prop
[
'module'
];
if
(
strpos
(
$element_prop
[
'module'
],
'@'
))
$path
.
=
'/'
.
$element_prop
[
'module'
];
// If we have a specific template we use it
if
(
file_exists
(
dol_buildpath
(
$path
.
'/core/tpl/resource_'
.
$element_prop
[
'element'
]
.
'_'
.
$mode
.
'.tpl.php'
)))
{
...
...
@@ -207,9 +209,9 @@ else
//print '/'.$element_prop['module'].'/core/tpl/resource_'.$element_prop['element'].'_view.tpl.php';
// If we have a specific template we use it
if
(
file_exists
(
dol_buildpath
(
'/'
.
$element_prop
[
'module'
]
.
'/core/tpl/resource_'
.
$element_prop
[
'element'
]
.
'_view.tpl.php'
)))
if
(
file_exists
(
dol_buildpath
(
$path
.
'/core/tpl/resource_'
.
$element_prop
[
'element'
]
.
'_view.tpl.php'
)))
{
$res
=@
include
dol_buildpath
(
'/'
.
$element_prop
[
'module'
]
.
'/core/tpl/resource_'
.
$element_prop
[
'element'
]
.
'_view.tpl.php'
);
$res
=@
include
dol_buildpath
(
$path
.
'/core/tpl/resource_'
.
$element_prop
[
'element'
]
.
'_view.tpl.php'
);
}
else
...
...
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