Fixed broke images in module graphs. Ticket #2684

This commit is contained in:
Arturo Gonzalez Diaz 2015-09-09 12:17:40 +02:00
parent 7d40ea754f
commit db608b3fb9
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}