[Socialtext-commits] SF.net SVN: socialtext: [1001] branches/rug/lib/Socialtext/Rug/Cookie.pm
Brought to you by:
socialtextrocks
From: <pet...@us...> - 2007-01-30 22:23:10
|
Revision: 1001 http://svn.sourceforge.net/socialtext/?rev=1001&view=rev Author: petdance Date: 2007-01-30 14:23:00 -0800 (Tue, 30 Jan 2007) Log Message: ----------- Make sure we have a rug object for our cookie Modified Paths: -------------- branches/rug/lib/Socialtext/Rug/Cookie.pm Modified: branches/rug/lib/Socialtext/Rug/Cookie.pm =================================================================== --- branches/rug/lib/Socialtext/Rug/Cookie.pm 2007-01-30 22:03:49 UTC (rev 1000) +++ branches/rug/lib/Socialtext/Rug/Cookie.pm 2007-01-30 22:23:00 UTC (rev 1001) @@ -12,6 +12,8 @@ use strict; use warnings; +use Carp (); + use Socialtext::Rug; our $CookieClass; @@ -34,7 +36,9 @@ my $class = shift; my $rug = shift; - return $CookieClass->new( $rug->req, @_ ); + my $req = $rug->req or Carp::confess( 'Rug object has no request object' ); + + return $CookieClass->new( $req, @_ ); } sub fetch { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |