[wellwell-devel] [wellwell] Use subject scratch variable as an indicator for a category listing.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Thu May 10 16:12:08 UTC 2012
commit 627571acddf216eae976ee29335660ac16fb1828
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Thu May 10 18:10:28 2012 +0200
Use subject scratch variable as an indicator for a category listing.
code/paging.sub | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/code/paging.sub b/code/paging.sub
index 04d73f0..e8fe9fa 100644
--- a/code/paging.sub
+++ b/code/paging.sub
@@ -180,7 +180,16 @@ sub {
$end = $matches;
}
$nav = join(':', $session, $start, $start + ($ml-1), $ml);
- if ($form{category}) {
+
+ if ($Scratch->{subject} eq 'category' || $form{category}) {
+ if ($i > 1) {
+ $url = $Tag->area({href => "$base_url/$i"});
+ }
+ else {
+ $url = $Tag->area({href => "$base_url"});
+ }
+ }
+ elsif ($form{category}) {
$url = $Tag->area({href => "$base_url/$i"});
}
else {
More information about the wellwell-devel
mailing list