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:13:48 UTC

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

Author: joes
Date: Tue Mar 18 03:13:48 2014
New Revision: 1578729

URL: http://svn.apache.org/r1578729
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=1578729&r1=1578728&r2=1578729&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Tue Mar 18 03:13:48 2014
@@ -6,7 +6,8 @@ sub dir_wrapper {
     my %args = @_;
     my $dir = delete $args{dir} || (parse_filename $args{path})[1];
     my @d;
-    for (grep $_ ne "." && $_ ne "..", readdir "content$dir") {
+    opendir my $dh, "content$dir" or die "Can't opendir content$dir: $!";
+    for (grep $_ ne "." && $_ ne "..", readdir $dh) {
         my $f = -d $_ ? (glob "$_/index.*")[0] : $_;
         my %a;
         read_text_file "content/$dir/$f", \%a;