summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2013-01-26 15:08:48 +0100
committerMarcin Łabanowski <marcin@6irc.net>2013-01-26 15:08:48 +0100
commite6b9bad788a6d9ae5f203b999925b9368a77536c (patch)
tree5d63bffd2418701b8f703050c9f289da74c0be35 /inc/display.php
parent9b7b1c996f8800efc533dd11a82dffcefdeb726e (diff)
parentdb1b50cfc3a7f3b45891b0ff69db4892b0e6929e (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: mod.php
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php
index 011a953c..9be772e4 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -297,7 +297,7 @@ class Post {
// Edit post
if (hasPermission($config['mod']['editpost'], $board['uri'], $this->mod))
- $built .= ' <a title="Edit post" href="?/' . $board['uri'] . '/edit/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>';
+ $built .= ' <a title="Edit post" href="?/' . $board['uri'] . '/edit' . ($config['mod']['raw_html_default'] ? '_raw' : '') . '/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>';
if (!empty($built))
$built = '<span class="controls">' . $built . '</span>';
@@ -418,7 +418,7 @@ class Thread {
// Edit post
if (hasPermission($config['mod']['editpost'], $board['uri'], $this->mod))
- $built .= ' <a title="Edit post" href="?/' . $board['uri'] . '/edit/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>';
+ $built .= ' <a title="Edit post" href="?/' . $board['uri'] . '/edit' . ($config['mod']['raw_html_default'] ? '_raw' : '') . '/' . $this->id . '">' . $config['mod']['link_editpost'] . '</a>';
if (!empty($built))
$built = '<span class="controls op">' . $built . '</span>';