]> wagnertech.de Git - mfinanz.git/commitdiff
Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 5 Sep 2012 15:44:25 +0000 (17:44 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 5 Sep 2012 15:44:25 +0000 (17:44 +0200)
1  2 
SL/Template/Plugin/L.pm

diff --combined SL/Template/Plugin/L.pm
index fd996141367a3c18750cd6215546ae53353d7197,c3411305a30eb5491d76e2baea985fb965d1a961..c5ac88abb887c63c85d75efe949372729b54ee53
@@@ -83,6 -83,15 +83,15 @@@ sub html_tag 
    return "<${tag}${attributes}>${content}</${tag}>";
  }
  
+ sub img_tag {
+   my ($self, @slurp) = @_;
+   my %options = _hashify(@slurp);
+   $options{alt} ||= '';
+   return $self->html_tag('img', undef, %options);
+ }
  sub select_tag {
    my $self            = shift;
    my $name            = shift;
@@@ -591,7 -600,7 +600,7 @@@ sub sortable_table_header 
    my $by_spec             = $sort_spec->{$by};
    my %current_sort_params = $controller->get_current_sort_params;
    my ($image, $new_dir)   = ('', $current_sort_params{dir});
 -  my $title               = delete($params{title}) || $by_spec->{title};
 +  my $title               = delete($params{title}) || $::locale->text($by_spec->{title});
  
    if ($current_sort_params{by} eq $by) {
      my $current_dir = $current_sort_params{dir} ? 'up' : 'down';