[gallery/gallery3] 72a6a8: Follow-on to 9dbe2e15ad9db3b2be53e46bc5f67d382fb40...
GitHub <noreply-9UaJU3cA/F/[email protected]>
| Newsgroups | gmane.comp.web.gallery.cvs |
|---|---|
| Message-ID | <[email protected]> |
Branch: refs/heads/master
Home: https://github.com/gallery/gallery3
Commit: 72a6a8abafb90321ecd4e2101eac03f86c7c07dd
https://github.com/gallery/gallery3/commit/72a6a8abafb90321ecd4e2101eac03f86c7c07dd
Author: Bharat Mediratta <[email protected]>
Date: 2013-02-14 (Thu, 14 Feb 2013)
Changed paths:
M modules/search/controllers/search.php
Log Message:
-----------
Follow-on to 9dbe2e15ad9db3b2be53e46bc5f67d382fb4089d for #1999.
Fix an issue where siblings() by itself throws an error. The problem is that
Theme_View::siblings() passes a null offset and limit to the callback which
gets passed down to search::search_within_album, which creates its query
in raw SQL and doesn't check for a null offset/limit. We want a reasonable
limit on the size of the set here (and 1000 is probably wayyy too high so
lower that to 100) so amend get_siblings to stop using default parameters
and actually check the inputs.
Author: Bharat Mediratta <[email protected]>
Date: Sat Feb 9 14:53:34 2013 -0500
Extend siblings callbacks to take a $limit and an $offset for navigating
large sibling sets. Useful for the thumbnav module since we don't want to
iterate a thousand siblings to find the one we care about. Fixes #1999.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
__[ g a l l e r y - c h e c k i n s ]_________________________
[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]