diff options
author | Garret Buell <terragb@gmail.com> | 2008-08-31 19:34:01 -0400 |
---|---|---|
committer | Garret Buell <terragb@gmail.com> | 2008-08-31 19:34:01 -0400 |
commit | e333345722f7a9241bc4e4ec2588eba5e075deff (patch) | |
tree | 3a8e6c177e1066b40098f05a794db621c0c7114c | |
parent | 44f02dd9c1ac677d865f5bbbc9875ac7023594c9 (diff) |
Tags_without_fancy
Change common_tag_link to format the tag link based on the setting of $config['site']['fancy']
darcs-hash:20080831233401-e3c0d-4e0e43f5a53a6659c49d65a2b1f2a47c5cdec228.gz
-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) { |