Changeset 12989
- Timestamp:
- 06/01/08 20:07:55 (6 months ago)
- Location:
- lang/perl/mobirc/branches/plaggerize
- Files:
-
- 2 modified
-
lib/App/Mobirc/Plugin/GPS.pm (modified) (2 diffs)
-
t/Plugins/GPS.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/mobirc/branches/plaggerize/lib/App/Mobirc/Plugin/GPS.pm
r12980 r12989 23 23 24 24 my $time = time(); 25 return tt qq{<a href="/channel/[% channel.name | uri %]/gps ?time=[% time | html %]">gps</a>};25 return tt qq{<a href="/channel/[% channel.name | uri %]/gps">gps</a>}; 26 26 }; 27 27 … … 79 79 $msg = uri_escape encode($c->req->mobile_agent->encoding, $msg); 80 80 81 my $time = time(); 82 my $redirect = tt "/channels/[% channel_name | uri %]?msg=L:[% msg %]&t=[% time | uri %]"; 81 my $redirect = tt "/channels/[% channel_name | uri %]?msg=L:[% msg %]"; 83 82 $c->res->redirect($redirect); 84 83 return 1; -
lang/perl/mobirc/branches/plaggerize/t/Plugins/GPS.t
r12980 r12989 2 2 use warnings; 3 3 use App::Mobirc; 4 use Test::More tests => 1;4 use Test::More tests => 2; 5 5 use HTTP::Engine::Context; 6 6 … … 24 24 $mobirc->run_hook_first('httpd', $c, '/channel/%23coderepos/gps_do'); 25 25 is $c->res->status, 302; 26 is $c->res->redirect, '/channels/%23coderepos?msg=L:Lat%3A%2035.21.03.342%2C%20Lng%3A%20138.34.45.725 &t=1212311430';26 is $c->res->redirect, '/channels/%23coderepos?msg=L:Lat%3A%2035.21.03.342%2C%20Lng%3A%20138.34.45.725'; 27 27
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)