[Koha-bugs] [Bug 12653] PROG/CCSR deprecation: Correct hard-coded opac-tmpl/prog path in tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 20 15:28:40 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12653

--- Comment #13 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 32529
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32529
Bug 12653: PROG/CCSR deprecation: Correct hard-coded opac-tmpl/prog path in
tests

Review of attachment 32529:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=12653&attachment=32529)
-----------------------------------------------------------------

::: xt/tt_valid.t
@@ +29,5 @@
> +# OPAC themes
> +my $opac_dir  = 'koha-tmpl/opac-tmpl';
> +opendir ( my $dh, $opac_dir ) or die "can't opendir $opac_dir: $!";
> +for my $theme ( grep { not /^\.|lib|js/ } readdir($dh) ) {
> +    push @themes, "$opac_dir/$theme";

/en is missing.

@@ +37,5 @@
> +# STAFF themes
> +my $staff_dir = 'koha-tmpl/intranet-tmpl';
> +opendir ( $dh, $staff_dir ) or die "can't opendir $staff_dir: $!";
> +for my $theme ( grep { not /^\.|lib|js/ } readdir($dh) ) {
> +    push @themes, "$staff_dir/$theme";

/en is missing.

@@ +59,4 @@
>          }
>          ($dir) = $dir =~ /koha-tmpl\/(.*)$/;
>          push @files, { name => "$dir/$name", lines => \@lines } if @lines;
> +      }, @themes

However, since this is a find, it still works without the /en.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list