diff options
-rw-r--r-- | lib/util.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 4af0e6fcd..93a0711f3 100644 --- a/lib/util.php +++ b/lib/util.php @@ -694,7 +694,11 @@ function common_render_content($text, $notice) { } function common_tag_link($tag) { - return '<a href="' . htmlspecialchars(common_path('tag/' . $tag)) . '" rel="tag" class="hashlink">' . htmlspecialchars($tag) . '</a>'; + if(common_config('site', 'fancy')) { + return '<a href="' . htmlspecialchars(common_path('tag/' . $tag)) . '" rel="tag" class="hashlink">' . htmlspecialchars($tag) . '</a>'; + } else { + return '<a href="' . htmlspecialchars(common_path('index.php?action=tag&tag=' . $tag)) . '" rel="tag" class="hashlink">' . htmlspecialchars($tag) . '</a>'; + } } function common_at_link($sender_id, $nickname) { |