Fixed broke images in module graphs. Ticket #2684
This commit is contained in:
parent
7d40ea754f
commit
db608b3fb9
|
@ -1799,7 +1799,10 @@ function html_print_image ($src, $return = false, $options = false,
|
|||
if (is_metaconsole()) {
|
||||
if (!$relative) {
|
||||
$working_dir = str_replace("\\", "/", getcwd()); // Windows compatibility
|
||||
if (strstr($working_dir, 'enterprise/meta') === false) {
|
||||
if ($no_in_meta){
|
||||
$src = '../../' . $src;
|
||||
}
|
||||
else if (strstr($working_dir, 'enterprise/meta') === false) {
|
||||
if ($src[0] !== '/') {
|
||||
$src = '/' . $src;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue