You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/18 04:11:42 UTC

svn commit: r1578728 - /thrift/cms-site/trunk/lib/view.pm

Author: joes
Date: Tue Mar 18 03:11:42 2014
New Revision: 1578728

URL: http://svn.apache.org/r1578728
Log:
docs

Modified:
    thrift/cms-site/trunk/lib/view.pm

Modified: thrift/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1578728&r1=1578727&r2=1578728&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Tue Mar 18 03:11:42 2014
@@ -7,7 +7,7 @@ sub dir_wrapper {
     my $dir = delete $args{dir} || (parse_filename $args{path})[1];
     my @d;
     for (grep $_ ne "." && $_ ne "..", readdir "content$dir") {
-        my $f = -d $_ ? glob("$_/index.*")[0] : $_;
+        my $f = -d $_ ? (glob "$_/index.*")[0] : $_;
         my %a;
         read_text_file "content/$dir/$f", \%a;
         push @d, [ "$dir/$_", $a{headers}->{title} // $_ ];