View | Details | Raw Unified | Return to bug 11317
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/report_files.tt (-2 / +2 lines)
Lines 31-38 Link Here
31
31
32
    <h1>Report/log files</h1>
32
    <h1>Report/log files</h1>
33
33
34
[% IF ( error_no_publicdir ) %]
34
[% IF ( error_no_dir ) %]
35
    <div class="dialog alert"><strong>Error : </strong>Report/log files could not be found because the "publicdir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
35
    <div class="dialog alert"><strong>Error : </strong>Report/log files could not be found because the "filesaccess" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
36
[% ELSE %]
36
[% ELSE %]
37
    [% IF ( files_loop ) %]
37
    [% IF ( files_loop ) %]
38
        <table id="files">
38
        <table id="files">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt (-1 lines)
Lines 66-72 Link Here
66
        <li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li>
66
        <li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li>
67
        <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li>
67
        <li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li>
68
        <!--<li><a href="/cgi-bin/koha/reports/stats.screen.pl">Till reconciliation</a></li> -->
68
        <!--<li><a href="/cgi-bin/koha/reports/stats.screen.pl">Till reconciliation</a></li> -->
69
        <li><a href="/cgi-bin/koha/reports/report_files.pl">Report/log files</a></li>
70
	</ul></div>
69
	</ul></div>
71
</div>
70
</div>
72
71
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (+3 lines)
Lines 111-116 Link Here
111
    <dd>Use tool plugins</dd>
111
    <dd>Use tool plugins</dd>
112
    [% END %]
112
    [% END %]
113
113
114
     <dt><a href="/cgi-bin/koha/reports/report_files.pl">Report/log files </a></dt>
115
     <dd>Report/log files</dd>
116
114
</dl>
117
</dl>
115
</div>
118
</div>
116
<div class="yui-u">
119
<div class="yui-u">
(-)a/reports/report_files.pl (-4 / +10 lines)
Lines 33-39 use Digest::MD5 qw(md5_hex); Link Here
33
33
34
my $input      = new CGI;
34
my $input      = new CGI;
35
my $file_id = $input->param("id");
35
my $file_id = $input->param("id");
36
my $directory = C4::Context->config('publicdir');
36
my $directory = C4::Context->config('filesaccess');
37
37
38
my ($template, $borrowernumber, $cookie)
38
my ($template, $borrowernumber, $cookie)
39
    = get_template_and_user({template_name => "reports/report_files.tt",
39
    = get_template_and_user({template_name => "reports/report_files.tt",
Lines 44-50 my ($template, $borrowernumber, $cookie) Link Here
44
                });
44
                });
45
45
46
unless($directory) {
46
unless($directory) {
47
    $template->param(error_no_publicdir => 1);
47
    $template->param(error_no_dir => 1);
48
}
48
}
49
else {
49
else {
50
    #Get the files list
50
    #Get the files list
Lines 57-64 else { Link Here
57
        next if ($filename =~ /^\./ or -d $full_path);
57
        next if ($filename =~ /^\./ or -d $full_path);
58
58
59
        my $st = stat($full_path);
59
        my $st = stat($full_path);
60
        my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =localtime($st->mtime);
61
        my $dt=DateTime->new(year      => $year + 1900,
62
                              month    => $mon + 1,
63
                              day      => $mday,
64
                              hour     => $hour,
65
                              minute   => $min,
66
                        );
60
        push(@files_list, {name => $filename,
67
        push(@files_list, {name => $filename,
61
                           date => scalar localtime($st->mtime),
68
                           date =>Koha::DateUtils::output_pref($dt),
62
                           size => $st->size,
69
                           size => $st->size,
63
                           id   => $id});
70
                           id   => $id});
64
    }
71
    }
65
- 

Return to bug 11317