summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-06 05:45:54 +0100
committerAndrew Dolgov <[email protected]>2006-03-06 05:45:54 +0100
commit68511f86ac18cac0a8484b2c34f625fb4f2f3b99 (patch)
treeb1b2c131c8185b635e0a9193d6378008a3fbcd41 /backend.php
parente8ef3b971566ad5d99fa04ce9ee058542bc8d33d (diff)
new option: OPEN_LINKS_IN_NEW_WINDOW (closes #47)
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 60399e31c..14eccf944 100644
--- a/backend.php
+++ b/backend.php
@@ -1040,6 +1040,10 @@
print "<div id=\"allEntryTags\">Tags: $f_tags_str</div>";
}
+ if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
+ $line["content"] = preg_replace("/href=/i", "target=\"_new\" href=", $line["content"]);
+ }
+
print $line["content"] . "</div>";
print "</div>";