Changeset 1958
- Timestamp:
- 04/17/08 22:49:49 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-35/lib/MT/Template/ContextHandlers.pm
r1956 r1958 7221 7221 7222 7222 # Get the current category 7223 defined (my $cat = _get_category_context($ctx))7224 or return $ctx->error($ctx->errstr);7223 my $cat = _get_category_context($ctx); 7224 return if !defined($cat) && defined($ctx->errstr); 7225 7225 return '' if ($cat eq ''); 7226 7226 7227 7227 # The category must have a parent, otherwise return empty string 7228 7228 my $parent = $cat->parent_category or return ''; … … 7251 7251 return '' if ($cat eq ''); 7252 7252 7253 my $res ;7253 my $res = ''; 7254 7254 7255 7255 # Put together the list of parent categories
