From 877fca845b7bd47ed6a1793be55327da223214d3 Mon Sep 17 00:00:00 2001 From: Travis Hegner Date: Mon, 29 Jun 2015 14:09:28 -0400 Subject: [PATCH] have to swap data-original and src for overlib to load correctly --- html/includes/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index d5c4c5308..72596ac35 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -191,7 +191,7 @@ function overlib_link($url, $text, $contents, $class) if ($config['web_mouseover'] === FALSE) { $output .= ">"; } else { - $output .= " onmouseover=\"return overlib('".$contents."'".$config['overlib_defaults'].",WRAP,HAUTO,VAUTO); \" onmouseout=\"return nd();\">"; + $output .= " onmouseover=\"return overlib('".str_replace('data-original', 'src', $contents)."'".$config['overlib_defaults'].",WRAP,HAUTO,VAUTO); \" onmouseout=\"return nd();\">"; } $output .= $text."";