summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-19 18:21:14 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-19 18:21:14 +0000
commit930f82a95170e05ad2d4fc079cc944d29521797d (patch)
tree9e6dd870f5542658c1c3ea0c8aff8038227e7d78 /lib/util.php
parent7c0286bfcc64525b85cafb68434f0689c03519bc (diff)
Update tag to use new framework
Broke up the tag action into two different actions (publictagcloud and tag). Brought it up-to-date with the new framework, but haven't fixed it for phpcs yet.
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/util.php b/lib/util.php
index d67c64972..73c4cdcc8 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -865,13 +865,11 @@ function common_fancy_url($action, $args=null)
case 'avatarbynickname':
return common_path($args['nickname'].'/avatar/'.$args['size']);
case 'tag':
- if (isset($args['tag']) && $args['tag']) {
- $path = 'tag/' . $args['tag'];
- unset($args['tag']);
- } else {
- $path = 'tags';
- }
+ $path = 'tag/' . $args['tag'];
+ unset($args['tag']);
return common_path($path . (($args) ? ('?' . http_build_query($args)) : ''));
+ case 'publictagcloud':
+ return common_path('tags');
case 'peopletag':
$path = 'peopletag/' . $args['tag'];
unset($args['tag']);