Skip to content

Commit

Permalink
[#629] WidgetSetLoop is not a component anymore. Changing logic for t…
Browse files Browse the repository at this point in the history
…ranslations.
  • Loading branch information
byrnereese authored and jayallen committed Dec 7, 2010
1 parent 388f436 commit dd7b96e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/MT/Template/ContextHandlers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21974,8 +21974,7 @@ Name of the widget set.
sub _hdlr_widget_count {
my ($ctx, $args, $cond) = @_;

my $plugin = MT->component('WidgetSetLoop');
my $ws = $args->{name} or return $ctx->error($plugin->translate('WidgetSet name required.'));
my $ws = $args->{name} or return $ctx->error( MT->translate('WidgetSet name required.') );
my $blog_id = $args->{blog_id} || $ctx->stash('blog_id') || 0;

my $widgetset = MT->model('template')->load({ name => $ws,
Expand Down

0 comments on commit dd7b96e

Please sign in to comment.