Bugzilla – Attachment 9727 Details for
Bug 7977
Add a "Quote-of-the-day" feature to the OPAC homepage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7977: Removing unused code from quotes_ajax.pl
Bug-7977-Removing-unused-code-from-quotesajaxpl.patch (text/plain), 1.49 KB, created by
Mason James
on 2012-05-22 23:57:54 UTC
(
hide
)
Description:
Bug 7977: Removing unused code from quotes_ajax.pl
Filename:
MIME Type:
Creator:
Mason James
Created:
2012-05-22 23:57:54 UTC
Size:
1.49 KB
patch
obsolete
>From b56e392b0f0ad3a042fb6b2a78de697da1765058 Mon Sep 17 00:00:00 2001 >From: Chris Nighswonger <cnighswonger@foundations.edu> >Date: Fri, 11 May 2012 07:42:06 -0400 >Subject: [PATCH] Bug 7977: Removing unused code from quotes_ajax.pl >Content-Type: text/plain; charset="utf-8" >http://koha-community.org > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >Signed-off-by: Mason James <mtj@kohaaloha.com> >--- > tools/quotes/quotes_ajax.pl | 11 ++--------- > 1 files changed, 2 insertions(+), 9 deletions(-) > >diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl >index bcc4f2e..926fe9d 100755 >--- a/tools/quotes/quotes_ajax.pl >+++ b/tools/quotes/quotes_ajax.pl >@@ -88,15 +88,8 @@ else { > my $iTotalRecords = ''; > my $sth = ''; > >- if (my $filter = $params->{'sSearch'}) { >- # This seems a bit brute force and ungraceful, but it provides a very general, simple search on all fields >- $iTotalRecords = $dbh->selectrow_array("SELECT count(*) FROM quotes WHERE id LIKE %?% OR source LIKE %?% OR text LIKE %?% OR timestamp LIKE %?%;",undef,($filter, $filter, $filter, $filter)); >- $sth = $dbh->prepare("SELECT * FROM quotes;"); >- } >- else { >- $iTotalRecords = $dbh->selectrow_array('SELECT count(*) FROM quotes;'); >- $sth = $dbh->prepare("SELECT * FROM quotes;"); >- } >+ $iTotalRecords = $dbh->selectrow_array('SELECT count(*) FROM quotes;'); >+ $sth = $dbh->prepare("SELECT * FROM quotes;"); > > $sth->execute(); > if ($sth->err) { >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7977
:
9310
|
9321
|
9323
|
9324
|
9325
|
9326
|
9327
|
9328
|
9338
|
9343
|
9373
|
9376
|
9377
|
9378
|
9392
|
9405
|
9406
|
9407
|
9408
|
9409
|
9433
|
9434
|
9435
|
9441
|
9442
|
9443
|
9447
|
9473
|
9474
|
9475
|
9476
|
9477
|
9478
|
9479
|
9480
|
9481
|
9482
|
9483
|
9484
|
9485
|
9486
|
9503
|
9504
|
9505
|
9510
|
9517
|
9521
|
9529
|
9530
|
9531
|
9682
|
9683
|
9711
|
9712
|
9713
|
9714
|
9715
|
9716
|
9717
|
9718
|
9719
|
9720
|
9721
|
9722
|
9723
|
9724
|
9725
|
9726
| 9727 |
9728
|
9729
|
9730
|
9731
|
9732