summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-05-13 09:13:01 (GMT)
committer Stella Power2008-05-13 09:13:01 (GMT)
commit93c7c0ac3101b590166fb7642e56acc2820f24e3 (patch)
tree4dc1db1df088a3f996518bed097a8c15a463c468
parent6bee3e7895f27b9245fb332157b06fc7d45271a4 (diff)
#257711 - made change to deal with modification to g2_filter links.
-rw-r--r--lightbox2.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 2c4ac7d..67bbdfc 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -704,7 +704,7 @@ function lightbox2_filter($op, $delta = 0, $format = -1, $text = '') {
if ($delta == 1) {
$text = ' '. $text .' ';
$text = preg_replace('/ShowItem/', 'DownloadItem', $text);
- $text = preg_replace('/target=""/', 'rel="lightbox"', $text);
+ $text = preg_replace('/src="/', 'rel="lightbox" src="', $text);
$text = substr($text, 1, -1);
}
return $text;