shadlaws
e719a6316a
#2062 - Fix extra/missing spaces in search query.
...
- Every to-be-concatenated string now begins with 1 space and ends with 0 spaces.
2013-03-14 15:44:00 +01:00
Bharat Mediratta
c4b2f79a67
Force a sort order no sibling checks. Fixes #1990 .
2013-02-05 13:02:26 -05:00
Bharat Mediratta
9396342250
Drop the requirement to have the install() function set the module
...
version. It's redundant. Fixes #1985 .
2013-01-31 19:55:53 -05:00
Bharat Mediratta
d45a737779
Update copyright to 2013. Fixes #1953 .
2013-01-21 01:22:01 -05:00
Chris Chilvers
f5420b4eab
fix, use $current->score
2012-12-14 17:34:33 +00:00
Chris Chilvers
a529a55e0b
search within the current album by default
...
When searching, limit search results to the current album.
In the search results screen, display which album was searched and provide
a link to search the whole gallery.
2012-12-14 17:34:26 +00:00
Bharat Mediratta
a74e3aea6f
Eliminate the search context if we encounter an item that cannot be
...
found in the search results. Fixes #1923 .
2012-12-09 20:26:16 -08:00
Bharat Mediratta
bf2bb3e1ea
Update copyright to 2012. #1822
2012-02-27 09:48:23 -08:00
Bharat Mediratta
eab12774fb
In get_position() don't try to truncate the score if it's empty. Follow-on to ce43f29e2c
2011-11-03 21:24:35 -07:00
Bharat Mediratta
80f24e8bcb
Follow on to 7f62f09cf3 for #1663 to fix bad
...
query syntax, pointed out by Singularis in http://gallery.menalto.com/gallery_3.0.2_feedback#comment-383135
2011-10-26 12:49:45 -07:00
Tim Almdal
933a34986d
Patch for tickets #1428 and #1760
...
Create the concept of a Photo_Display_Context. If the user is browsing a dynamic album (i.e. tags) and chooses to
look at an image in that album. The display of the image happens correctly, but the 'next' and 'previous' buttons
are no longer consistent. When one of these is clicked, Gallery will open the adjacent image in the actuall album,
not the dynamic album.
2011-08-11 22:04:21 -07:00
Tim Almdal
de1b4082cd
Patch for ticket #1763 . Where offset could be converted to a null string. It's not really a problem in the current release, but will cause isses when we serialize the offset as part of the display context.
2011-07-24 17:11:04 -07:00
Bharat Mediratta
7f62f09cf3
Improve search to use wildcard matching, thanks to some code from tempg.
...
Fixes #1663 .
2011-03-27 13:16:41 -07:00
Bharat Mediratta
423daa52d5
Update copyright to 2011.
2011-01-21 23:01:06 -08:00
Bharat Mediratta
38b7493287
whitespace fix.
2011-01-15 13:07:14 -08:00
Bharat Mediratta
c9c4f96100
Tune timeouts to work better on large installs.
2010-09-11 21:36:38 -07:00
Tim Almdal
41c18929cd
Remove the duplicate query when searching as pointed out by joe7 on ticket #844
2010-06-11 15:54:08 -07:00
Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Bharat Mediratta
c050acf30a
Fix lots of warnings that pop up when we're in E_STRICT mode. They're
...
mostly issues around uninitialized variables, calling non-static
functions in a static context, calling Session functions directly
instead of on its singleton, passing non-variables by reference, and
subclasses not using the same interface as the parent class.
2010-01-31 16:07:41 -08:00
Tim Almdal
a11bf29507
Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any where
...
clauses and deletes all the entries in the table unless an array of id's are
passed as the parameter. This fix used the Database_builder to specify any where
conditions. Thanks psvo for find the first one. :-)
2010-01-09 23:57:16 -08:00
Bharat Mediratta
338af4a722
Database::escape_str() is now Database::escape().
2009-12-18 01:16:27 -08:00
Bharat Mediratta
94411b3658
Fix a bunch of places where we were using "= null" instead of "IS NULL".
2009-12-02 10:02:08 -08:00
Bharat Mediratta
d2cb217e20
Convert more database calls over to the new format
...
- admin/maintenance page loads, the rebuild thumbs/resizes task works
- Fixed up some conversion bugs in the Cache driver
2009-12-02 00:34:34 -08:00
Bharat Mediratta
dee3ee81e2
Database::orwhere() is now Database_Builder::or_where()
2009-11-26 20:25:32 -08:00
Bharat Mediratta
1fd0e14359
Convert all DB where() calls to take 3 arguments.
...
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-26 12:09:04 -08:00
Bharat Mediratta
2e420522ec
Preliminary work to cut over to Kohana 2.4
...
- Kohana::log() -> Kohana_Log::add()
- Kohana::config_XXX -> Kohana_Config::instance()->XXX
- Implement View::set_global in MY_View
- Updated Cache_Database_Driver to latest APIs
- ORM::$loaded -> ORM::loaded()
- Updated item::viewable() to use K2.4 parenthesization
2009-11-25 13:22:24 -08:00
Bharat Mediratta
1067e68292
Redesign the way that we consider page types to create buckets of page
...
types, and a subtype for specifics. Currently the top level bucket
collection, item, other
Here are the core subtypes so far:
collection: album, search, tag
item: movie, photo
other: login, reset, comment-fragment, comment
It's legal to create new page_subtypes whenever you want. Use the
appropriate page_type to get the coarse grain behavior that you want.
2009-11-17 14:04:45 -08:00
Tim Almdal
f0610ccaa0
Merge branch 'master' into talmdal_dev
2009-10-24 08:23:51 -07:00
Tim Almdal
571d7fe43c
When doing a search we need to "OR" the view permissions not "AND" them. Fixes ticket #805 .
2009-10-24 08:18:17 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-22 13:11:03 -07:00
Tim Almdal
78ee4193b7
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16 10:06:58 -07:00
Tim Almdal
00eacd659f
Start simplifying the interface by moving the static methods from user.php and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-16 08:53:31 -07:00
Bharat Mediratta
b6c1ba7ea6
Use SQL_CALC_FOUND_ROWS instead of doing the search twice, for better performance.
...
Fixes ticket #835 , thanks Joe7!
2009-10-11 11:22:41 -07:00
Chad Kieffer
4be3210f1d
Fixed previous over zealous find and replace.
2009-10-04 15:30:05 -06:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Chad Kieffer
e1e8904e4a
Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's and classes in the login/reset password dialog.
2009-09-30 22:49:36 -06:00
Tim Almdal
6458b47e3e
Remove the update code introduced with 9d7d79. In addition, captialize MyISAM correctly.
2009-09-17 12:38:59 -07:00
Tim Almdal
9d76797b17
Changed the search module installer to explicitly specify MyISAM as the database type. Changed the packager to not remove the engine specification if the table is search_records. Fixes Ticket #774
2009-09-16 22:23:32 -07:00
Andy Staudacher
ddb84c84e1
Rename mark_safe() to mark_clean()
2009-08-31 00:42:18 -07:00
Andy Staudacher
e7f5e0a9a3
Merge commit 'upstream/master'
...
Conflicts:
modules/gallery/views/l10n_client.html.php
modules/organize/views/organize_tree.html.php
modules/server_add/helpers/server_add_event.php
2009-08-30 18:27:40 -07:00
Bharat Mediratta
af6bfa3c71
Change the processing time for search_task and exif_task to start the
...
1.5 second counter only after we've done any expensive queries. This
guarantees at least some time to do work.
Fixes ticket #693 .
2009-08-30 13:29:05 -07:00
Andy Staudacher
effccfd41d
Change all instances of SafeString::of_safe_html() to html::mark_safe() in views.
2009-08-30 07:00:56 -07:00
Andy Staudacher
b4b638be44
Undo url helper changes - url methods no longer return a SafeString.
...
Adding SafeString::of_safe_html() calls where urls are passed as parameters to t() and t2().
2009-08-29 16:28:30 -07:00
Bharat Mediratta
4828db003f
Remove 'ENGINE=InnoDB' specification from tables that we create. Use
...
the system's default table specification. Fixes ticket #597 .
2009-08-27 15:47:54 -07:00
Bharat Mediratta
7863aa16f9
Update tags module to notify modules when items related to a tag are
...
affected. Practically speaking this means that we'll reindex items
when tags are added or removed from them.
API change:
Remove item_related_updated_batch event.
Rationale:
While this is an efficient event, it requires module developers to
support two event APIs for staying up to date and increases the
likelihood that they'll forget one and have data corruption. Force
them all through the slower but more reliable pipe, for now. We
can always try to improve efficiency by using the batch_start and
batch_stop events.
2009-08-08 14:30:21 -07:00
Bharat Mediratta
7ad0808a11
Change the API for getting to the original state of an ORM.
...
Old API: $obj->original("field_name")
New API: $obj->original()->field_name
This allows us to revert the varous xxx_updated events back to passing
an original ORM as well as the the updated one. This makes for a
cleaner event API.
Old API: comment_updated($comment) { $comment->original("field_name") }
Old API: comment_updated($old, $new) { $old->field_name }
2009-08-02 12:09:00 -07:00
Tim Almdal
eb90fc9e63
Remove debugging print statement in search.php
...
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-30 01:32:24 +08:00
Bharat Mediratta
44bc74edb9
Change search callbacks to use the event system, so move them out of
...
xxx_search helpers and into xxx_event helpers.
2009-07-28 20:30:34 -07:00
Romain LE DISEZ
350c1b0267
Use BOOLEAN instead of integer to describe the permissions :
...
- DENY = false
- ALLOW = true
- UNKNOW = null (for intent only)
- INHERIT = null (for cache)
Upgrade is not included for now.
(cherry picked from commit 719c59e040 )
2009-07-23 09:11:55 -07:00
Bharat Mediratta
788a458a11
Remove success logging. Only log on errors, otherwise the log is huge.
2009-07-19 13:43:06 -07:00