~ubuntu-branches/debian/squeeze/movabletype-opensource/squeeze

« back to all changes in this revision

Viewing changes to lib/MT/Component.pm

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves
  • Date: 2009-06-19 23:03:15 UTC
  • mfrom: (1.2.1 upstream) (9.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090619230315-rm1vcgg5iymu2zh1
Tags: 4.2.6.1-1
* New upstream release
* Update Standards-Version (no changes)
* Don't specify full path to apache2ctl in postinst (thanks, Lintian)
* Remove unused Lintian overrides
* Don't install empty directory in extlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
 
1
# Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd.
2
2
# This program is distributed under the terms of the
3
3
# GNU General Public License, version 2.
4
4
#
5
 
# $Id: Component.pm 2888 2008-08-02 23:02:16Z bchoate $
 
5
# $Id: Component.pm 3473 2009-02-27 20:23:25Z bchoate $
6
6
 
7
7
package MT::Component;
8
8
 
50
50
sub init {
51
51
    my $c = shift;
52
52
    $c->init_registry() or return;
53
 
 
54
 
    # plugin callbacks are initialized after they finish loading.
55
 
    $c->init_callbacks() unless $c->isa('MT::Plugin');
56
53
    $c;
57
54
}
58
55
 
460
457
            '';
461
458
        } else {
462
459
            $args{params} = '' unless defined $args{params};
463
 
            my @p = map MT::Util::decode_html($_),
464
 
                    split /\s*%%\s*/, $args{params}, -1;
 
460
            my @p = split /\s*%%\s*/, $args{params}, -1;
465
461
            @p = ('') unless @p;
466
462
            my $translation = $c->translate($args{phrase}, @p);
467
463
            if (exists $args{escape}) {