[Jifty-commit] r5905 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Wed Oct 8 18:29:23 EDT 2008
Author: sartak
Date: Wed Oct 8 18:29:23 2008
New Revision: 5905
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web.pm
Log:
r73616 at onn: sartak | 2008-10-08 18:28:39 -0400
Allow literal region names in qualified_region
Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm (original)
+++ jifty/trunk/lib/Jifty/Web.pm Wed Oct 8 18:29:23 2008
@@ -1344,13 +1344,15 @@
Returns the fully qualified name of the current
L<Jifty::Web::PageRegion>, or the empty string if there is none. If
C<REGION> is supplied, gives the qualified name of C<REGION> were it
-placed in the current region.
+placed in the current region. You may also use a literal region name.
=cut
sub qualified_region {
my $self = shift;
- return join( "-", map { $_->name } @{ $self->{'region_stack'} || [] }, @_ );
+ join "-",
+ map { ref($_) ? $_->name : $_ }
+ @{ $self->{'region_stack'} || [] }, @_;
}
1;
More information about the Jifty-commit
mailing list