Author: joes
Date: Tue Mar 18 03:44:18 2014
New Revision: 1578734
URL: http://svn.apache.org/r1578734
Log:
better choice
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=1578734&r1=1578733&r2=1578734&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Tue Mar 18 03:44:18 2014
@@ -23,7 +23,7 @@ sub dir_wrapper {
$a = $vars;
last;
}
- push @d, [ $file, $a->{headers}->{title} // $_ ];
+ push @d, [ $file, $a->{headers}->{title} // $filename ];
}
return view->can($args{view})->(dir => [sort {lc $a->[1] cmp lc $b->[1]}
@d], %args);
}