]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Tags_without_fancy
authorGarret Buell <terragb@gmail.com>
Sun, 31 Aug 2008 23:34:01 +0000 (19:34 -0400)
committerGarret Buell <terragb@gmail.com>
Sun, 31 Aug 2008 23:34:01 +0000 (19:34 -0400)
Change common_tag_link to format the tag link based on the setting of $config['site']['fancy']

darcs-hash:20080831233401-e3c0d-4e0e43f5a53a6659c49d65a2b1f2a47c5cdec228.gz

lib/util.php

index 4af0e6fcd9ef1b8c13c8a8eb77d6d0e4133174c1..93a0711f36b7b41ae4c5576626afb5344390b70d 100644 (file)
@@ -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) {