summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-05-13 09:13:27 (GMT)
committer Stella Power2008-05-13 09:13:27 (GMT)
commitfe005499abe2eef6a093c9bfb1ee0aed40f1af3b (patch)
tree9774e385809361bfdf71faefe162543a63b8af2a
parente14f08c7179218a02b4b9d93ddd35822fd06f139 (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 21fad72..e731429 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -693,7 +693,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;