summaryrefslogtreecommitdiff
path: root/modules/gallery
AgeCommit message (Collapse)Author
2009-07-22Duh... when I added user_can, I passed in the user, but still used the ↵Tim Almdal
groups from the session
2009-07-21Add an API method user_can that allows for checking a specific user has theTim Almdal
specified permission to the item. Changed can to delegate to this method passing in the active user.
2009-07-21Always display the option menu so that modules with options that requireTim Almdal
menu items with view permission have somewhere to hang these menu items from. If its empty it will get removed by $menu->compact()
2009-07-21Fix the bug that the quick menu fires for the wrong photo. This stemsBharat Mediratta
from using a single gQuickPane <div> that we move around. A race condition happens when you mouse over two thumbnails quickly. Whichever server response loses the race gets displayed, and sometimes it's the one that you're no longer hovering over. Fix it by changing gQuickPane to be a class and creating a <div> per thumbnail. Fixes ticket #290.
2009-07-21Properly display thumbnails for private movies by backtracking fromBharat Mediratta
the thumbnail to the movie and then showing it as a JPG. Fixes ticket #570.
2009-07-21Remove the fallback code. It should trigger extremely rarely and seems ↵Bharat Mediratta
highly inefficient to me, so let's see if we can live without it.
2009-07-21The RSS link should go to the parent album when looking at photos/movies.Bharat Mediratta
Fixes ticket #566.
2009-07-21Use php_uname() instead of PHP_OS for greater accuracy. Fixes ticket #563.Bharat Mediratta
2009-07-21Updated for movieplayer.html.php updateBharat Mediratta
2009-07-21Fixed grammer and set lowercase for the word project (minor change)Shai Ben-Naphtali
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-07-20Fix indentationBharat Mediratta
2009-07-20set wmode='transparent' other than flowplayer.jshiwilson
(cherry picked from commit 79a46658196a98a3972983cc422d1ee544b09d4a)
2009-07-20Don't let the task status message exceed the size of the status column when ↵Bharat Mediratta
there's an error.
2009-07-20Dump out the error message along with the stack trace when we catch anBharat Mediratta
exception from View::render()
2009-07-20Make some API changes simplify the tag editing code. We now have aBharat Mediratta
good pattern for allowing modules to add their own hooks to item forms! 1) Album, photo and movie forms now all use edit_item as the group and we publish item_edit_form and item_edit_form_completed events which makes it much easier in the module to handle all events. They can still differentiate based on $item->type if they want to. 2) Added tag::clear_all() and tag::compact() functions which takes the place of hiwilson's tag::update() function and is now used in tag_event::item_delete(). This provides a simple API that allows us to have a lot less event handling code. It's less efficient than what hiwilson was doing before in that it will delete and re-add tags, but if that ever turns out to be a performance issue we can do something about it then.
2009-07-20(1)Add tag edit field in album/photo edit form. (2)provide edit ↵hiwilson
functionality. (3)support multi-word tagging.
2009-07-19Remove excess success logging. In the rebuild images case, it canBharat Mediratta
make a huge log file. In the l10n_client case, it's not really necessary to know that level of detail and it makes for a weird API.
2009-07-19Don't post the item_updated() event if we're just updating the view count.Bharat Mediratta
2009-07-17Rename "locale" helper to "locales" to avoid conflicting with PHP 5.3.Bharat Mediratta
Fixes ticket #194
2009-07-17Don't show the combined CSS/JS elements if we didn't combine anything.Bharat Mediratta
Fixes ticket #554.
2009-07-17Don't bother making gzencoded version of combined CSS/JS if ↵Bharat Mediratta
zlib.output_compression=On
2009-07-17Merge branch 'master' of git@github.com:/gallery/gallery3Bharat Mediratta
2009-07-17Don't send back the gzipped version if we're usingBharat Mediratta
zlib.output_compression in PHP, since that means that the stream is already compressed. Fixes ticket 555.
2009-07-17Change model_cache::clear() API to clear everything. This preventsBharat Mediratta
old ORM relationships from hanging around, which was causing problems when doing MPTT manipulations (resulting in incorrect permission propagation-- very bad!)
2009-07-17Fix a bug where moved items don't properly inherit permissions fromBharat Mediratta
their new target. After each move, recalculate the permissions for the new parent's hierarchy. Fixes ticket #552
2009-07-16Second non-trivial change to the event code. We now publish modelBharat Mediratta
related events from within the model handling code. The only exception to this currently is item_created which is challenging because we have to save the item using ORM_MPTT::add_to_parent() before the object itself is fully set up. When we get that down to one call to save() we can publish that event from within the model also.
2009-07-16Update golden file to match recent changes in event code.Bharat Mediratta
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
2009-07-16Stripped the trailing ?> without changing whitespace.Bharat Mediratta
2009-07-16Revert "Remove trailing ?>."Bharat Mediratta
This reverts commit a333e01bd1c8cb3ad08cd0ad16023e3fcdfc4181.
2009-07-16Remove trailing ?>.Bharat Mediratta
2009-07-16Remove spurious blank line at the top of the file introduced in ↵Bharat Mediratta
09c9b1a75561881a40ada71f02710355923602e2
2009-07-16Update Xss_Security_Test to know about p::purify() and checkpoint theBharat Mediratta
golden file.
2009-07-16move fix for backslashes on windows outside of loop per bharat's suggestionKevin Nehls
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-07-16Fix backslashes in relative URLs of combined css files.Kevin Nehls
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-07-15Remove a completed @todo.Bharat Mediratta
2009-07-15Fix 542 by changing the wording from you to your, thanks FloridaveTim Almdal
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-143rd attempt to fix localization messages. Last time around I didn'tBharat Mediratta
dig deep enough, but now we form the complete message using t() style semantics to replace % placeholders with __ style JS placeholders. Also, stop appending the (completed) text to existing messages.. roll it together.
2009-07-14Move the gallery version out of a module variable and into a constantBharat Mediratta
in the gallery helper. This will let us bump the version without having to bump the gallery module number.
2009-07-14Update HTMLPurifier to version 4.4.0Tim Almdal
2009-07-14Removed unnecessary contructor from the HTMLPurifier.php library classTim Almdal
2009-07-14Add /opt/bin as a binary path.Bharat Mediratta
2009-07-13Add quotes around all values that contain spaces in them, and add aBharat Mediratta
test to make sure that we continue to do so. This makes sure that we don't have problems with 5.3 which treats the literal "on" as a boolean.
2009-07-11Whitespace fixes.Bharat Mediratta
2009-07-12Use %27 instead of &#039; (the latter is the wrong form of escaping for urls).Bharat Mediratta
2009-07-11Unescape &#039; also (single quote)Bharat Mediratta
2009-07-11Get the thumbnail menu working.Bharat Mediratta
1) Stop changing the menu classes in JS, instead allow us to specify it in the Menu class itself and then set it to be gThumbMenu in Theme_View 2) Move the gThumbMenu init code to the bottom of the $(document).ready() block; something in there was interfering with it.
2009-07-11Fix whitespace typo.Bharat Mediratta
2009-07-11Fix a problem in delete() where we were referencing $parent withoutBharat Mediratta
saving its value before $item got deleted. Further fix for #528.
2009-07-11Fix a typo in the last commit. I left off a closing paren.Bharat Mediratta