summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2013-09-27 20:52:20 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2013-09-27 20:52:20 +0200
commitb679b8c0315f96b1aeb3286efd5a36072aeb18cc (patch)
tree99a09362381941540ef053309a86122be8638be3 /db
parent15c663658ecf19bdc6257e57825e943735aece0f (diff)
always open links in new tab
Diffstat (limited to 'db')
-rw-r--r--db/item.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/item.php b/db/item.php
index 5c0472eaf..70d3cbb07 100644
--- a/db/item.php
+++ b/db/item.php
@@ -176,5 +176,9 @@ class Item extends Entity implements IAPI {
}
+ public function setBody($body) {
+ parent::setBody(str_replace('<a', '<a target="_blank"', $body));
+ }
+
}