[Jifty-commit] jifty branch, master, updated. jifty-1.01209-6-g05ee979

Jifty commits jifty-commit at lists.jifty.org
Tue Jan 18 11:49:20 EST 2011


The branch, master has been updated
       via  05ee9798db3f1b15dbbe88568a53631c77f8b5ee (commit)
      from  640b91bba022518847806436ee9939ce6d8a9d23 (commit)

Summary of changes:
 lib/Jifty/Plugin/ViewDeclarePage/Page.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 05ee9798db3f1b15dbbe88568a53631c77f8b5ee
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Jan 18 11:48:18 2011 -0500

    render_title_inpage expects to be passed the title
    
    This case was only triggered when the title was set via page metadata
    
        page { title => 'Foo' } content { ... }
    
    rather than
    
        page_title is 'Foo';

diff --git a/lib/Jifty/Plugin/ViewDeclarePage/Page.pm b/lib/Jifty/Plugin/ViewDeclarePage/Page.pm
index 6187e62..08848eb 100644
--- a/lib/Jifty/Plugin/ViewDeclarePage/Page.pm
+++ b/lib/Jifty/Plugin/ViewDeclarePage/Page.pm
@@ -427,7 +427,7 @@ sub instrument_content {
     my $content = Template::Declare->buffer->pop;
 
     unless ( $seen_title ) {
-        $self->render_title_inpage;
+        $self->render_title_inpage( $self->_title );
     }
 
     Template::Declare->buffer->append( $content );

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list