Changeset 2535
- Timestamp:
- 06/10/08 02:18:16 (20 months ago)
- Location:
- branches/release-39/lib/MT
- Files:
-
- 2 modified
-
App/Comments.pm (modified) (6 diffs)
-
Template/ContextHandlers.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/App/Comments.pm
r2463 r2535 219 219 } 220 220 ); 221 return $app->login ( error => $app->translate('Invalid login.') );221 return $app->login_form( error => $app->translate('Invalid login.') ); 222 222 } 223 223 … … 237 237 $commenter = 238 238 $app->_create_commenter_assign_role( $q->param('blog_id') ); 239 return $app->login ( error => $app->translate('Invalid login') )239 return $app->login_form( error => $app->translate('Invalid login') ) 240 240 unless $commenter; 241 241 } … … 243 243 my $registration = $app->config->CommenterRegistration; 244 244 unless ( $registration && $registration->{Allow} && $blog->allow_commenter_regist ) { 245 return $app->login ( error => $app->translate('Successfully authenticated but signing up is not allowed. Please contact system administrator.') )245 return $app->login_form( error => $app->translate('Successfully authenticated but signing up is not allowed. Please contact system administrator.') ) 246 246 unless $commenter; 247 247 } … … 286 286 $ctx->{app} ||= $app; 287 287 MT::Auth->invalidate_credentials($ctx); 288 return $app->login ( error => $error || $app->translate("Invalid login") );288 return $app->login_form( error => $error || $app->translate("Invalid login") ); 289 289 } 290 290 … … 335 335 sub { 336 336 $app->_send_signup_confirmation( $user->id, $user->email, 337 $param->{entry_id}, $param->{blog_id}, $param->{static} );337 $param->{entry_id}, $param->{blog_id}, $param->{static} || $param->{return_url} ); 338 338 } 339 339 ); … … 532 532 } 533 533 534 $app->login (534 $app->login_form( 535 535 message => $app->translate( 536 536 'Thanks for the confirmation. Please sign in to comment.') -
branches/release-39/lib/MT/Template/ContextHandlers.pm
r2530 r2535 12638 12638 12639 12639 sub _load_sibling_categories { 12640 my ($ctx, $cat ) = @_;12640 my ($ctx, $cat, $class_type) = @_; 12641 12641 my $blog_id = $cat->blog_id; 12642 12642 my $r = MT::Request->instance; … … 12644 12644 return $cats if $cats; 12645 12645 12646 my @cats = MT::Category->load({blog_id => $blog_id, parent => $cat->parent}, 12646 my $class = MT->model($class_type); 12647 my @cats = $class->load({blog_id => $blog_id, parent => $cat->parent}, 12647 12648 {'sort' => 'label', direction => 'ascend'}); 12648 12649 $r->stash('__cat_cache_'.$blog_id.'_'.$cat->parent, \@cats); … … 12683 12684 (($uncompiled =~ /<MT:?Pages/i) ? 1 : 0); 12684 12685 my $blog_id = $cat->blog_id; 12685 my $cats = _load_sibling_categories($ctx, $cat );12686 my $cats = _load_sibling_categories($ctx, $cat, $class_type); 12686 12687 my ($pos, $idx); 12687 12688 $idx = 0;
