diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 19:16:25 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 19:16:25 +1100 |
| commit | 85710249b705c455b2243f450765e458c14cdba6 (patch) | |
| tree | 106cb607d97b1da2921c4ea94d78591cd8e71835 /inc/display.php | |
| parent | 85578b7105f7b53e0f45fc886270540b9d07b2f3 (diff) | |
Raw HTML editing
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php index 3dd57726..57110224 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>'; |
