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

(-)a/C4/Review.pm (-1 / +2 lines)
Lines 91-97 sub updatereview { Link Here
91
}
91
}
92
92
93
sub numberofreviews {
93
sub numberofreviews {
94
    my ($status) = @_;
94
    my ($param) = @_;
95
    my $status = (defined($param) ? $param : 1);
95
    my $dbh            = C4::Context->dbh;
96
    my $dbh            = C4::Context->dbh;
96
    my $query          =
97
    my $query          =
97
      "SELECT count(*) FROM reviews WHERE approved=?";
98
      "SELECT count(*) FROM reviews WHERE approved=?";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-3 / +2 lines)
Lines 97-104 Link Here
97
    <h3><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></h3>
97
    <h3><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></h3>
98
        [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) %]
98
        [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) %]
99
            <ul>
99
            <ul>
100
                [% IF ( pendingcomments ) %]<li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span></li>[% END %]
100
                [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) %]<li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span></li>[% END %]
101
                [% IF ( pendingtags ) %]<li><a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span></li>[% END %]
101
                [% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]<li><a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span></li>[% END %]
102
            </ul>
102
            </ul>
103
        [% END %]
103
        [% END %]
104
    [% END %]
104
    [% END %]
105
- 

Return to bug 7259