summaryrefslogtreecommitdiff
path: root/modules/gallery
AgeCommit message (Collapse)Author
2009-09-22Wrap the login form with a view in order to include a forgot password link. ↵Tim Almdal
Fixes ticket #620
2009-09-22Issue an information message if the user clicks "Save Settings" indicating ↵Tim Almdal
that the key was not changed as it as identical. This addresses the obscure issue raised in ticket #756
2009-09-21Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/controllers/albums.php
2009-09-212nd attempt at gracefully dealing with sort columns that containBharat Mediratta
nulls. This time around, do a query to determine whether or not the sort column has nulls in it. If it doesn't, then use our comparators as before. There are NULLs in the sort column, so we can't use MySQL comparators. Fall back to iterating over every child row to get to the current one. This can be wildly inefficient for really large albums, but it should be a rare case that the user is sorting an album with null values in the sort column. Fixes #627
2009-09-21Set children_count to 0, photos have no children.Bharat Mediratta
2009-09-21Update the next/previous item calculations to match what we do in photos.phpBharat Mediratta
Force the children_count to be zero, movies have no children. Rename $photo to $movie everywhere.
2009-09-21Add viewable() protection to children() and children_count() calls.Bharat Mediratta
This is not currently necessary (nor is it a security hole) because we don't constrain permissions at the child level in the core, but it makes our security audits easier and will enable the scenario where somebody writes a module to add per-photo permissions.
2009-09-21Fix Item_Model::get_position() so that our sort is stable when the comparisonBharat Mediratta
row has a null value in the sort field. Fix for #627 Note: this changes get_position() to take an Item_Model instead of an id!
2009-09-19On the edit album form, add dirname and slug asa hidden fields, so that when ↵Tim Almdal
the edits are being validated on input, the fields are found and can be referenced
2009-09-19Change the fix for ticket #775 to always add the Add menu, but not add any ↵Tim Almdal
items if the album directory is not writable.
2009-09-18Don't display the add menu if the underlying operating system directory is ↵Tim Almdal
not writable. THis should fix ticket #775
2009-09-17- Add theme->movie_menu() to whitelisted methods.Andy Staudacher
- xss_data checkpoint
2009-09-17Arg, fixing the "Sharing your Translations" text, thanks engineer@gmcAndy Staudacher
2009-09-17Fix: Make "Sharing your translations" a localizable stringAndy Staudacher
2009-09-17Mark permission's display name for translationAndy Staudacher
2009-09-16Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2009-09-16Changed the search module installer to explicitly specify MyISAM as the ↵Tim Almdal
database type. Changed the packager to not remove the engine specification if the table is search_records. Fixes Ticket #774
2009-09-16Merge branch 'master' of git@github.com:gallery/gallery3Bharat Mediratta
2009-09-16Add a movie_menu() theme callback, and have the default theme call itBharat Mediratta
in the sidebar on movie page types.
2009-09-15Also check for rss feeds in controller auth checkAndy Staudacher
2009-09-15Controller auth / CSRF fixesAndy Staudacher
2009-09-15Add exception for REST controllers (no fixes necessary).Andy Staudacher
2009-09-15CSRF / auth fixes, golden data file checkpointAndy Staudacher
2009-09-15First functional version of Controller_Auth_TestAndy Staudacher
2009-09-15Initial skeleton of Controller_Auth code audit test (non functional).Andy Staudacher
2009-09-15Improve language preference (Acccept-Language header matching): Boost ↵Andy Staudacher
same-language match over exact locale match for lower qvalue.
2009-09-13Set the version to "3.0 git (pre-RC1)"Bharat Mediratta
2009-09-13Merge branch 'master' of git@github.com:gallery/gallery3 into beta3_stagingBharat Mediratta
2009-09-13Remove raw HTML that's wrapped around the name of the fileKevin Nehls
to create if not logged in as admin
2009-09-13Merge branch 'master' of git@github.com:gallery/gallery3 into beta3_stagingBharat Mediratta
2009-09-13If there's a show= param and we can't find the given id in the currentBharat Mediratta
album, just ignore the parameter.
2009-09-12Update version to "3.0 beta 3"Bharat Mediratta
2009-09-12Updated for url format changes applied in ↵Bharat Mediratta
2aad580f53dbc06bb170c710467b47a5a532c6c8.
2009-09-11rawurlencode() path components in relative_path_cache andBharat Mediratta
relative_url_cache so that they're safe for browser use.
2009-09-10Put the buttons for album/photo dialogs in their own group in the formBharat Mediratta
so that they appear at the end, after any other groups that other modules add. Thanks Glooper!
2009-09-10Use abs_url() inside url::redirect() calls so that we don't just windBharat Mediratta
up tacking onto the base url.
2009-09-10Remove debug code.Bharat Mediratta
2009-09-10Rename "after_installer" to "welcome_message" in the code to make itBharat Mediratta
clearer what its purpose is. Add some spacing in the theme for it so that it's less cramped.
2009-09-10Rename ORM_MPTT::is_descendant() to ORM_MPTT::contains() to make theBharat Mediratta
API a little clearer. Write a test for it, too.
2009-09-08Fix a thinko-- of course we want urls to be the path to the file itself.Bharat Mediratta
2009-09-08Fix line > 100 chars.Bharat Mediratta
2009-09-08Replace two preg_replace() calls with a single trim() call.Bharat Mediratta
2009-09-08Change $this->_photo to just $photoBharat Mediratta
2009-09-08Fix test to support new slug code.Bharat Mediratta
2009-09-08Change the relative_path_cache and relative_url_cache columns to storeBharat Mediratta
urlencoded data for ease of use when we're dealing with the data. This fixes ticket #569 by not allowing the urls that we put into our RSS feeds to have bad characters in them. We have to convert a path like var/albums/foo/"quotes"/bar.jpg into something like var/albums/foo/%22quotes%22/bar.jpg. If we take the approach of storing native data in the cache, then we have to explode the path, urlencode the bits, and implode it again to avoid escaping the / char. By storing it escaped, we avoid this problem. I believe (but have not tested) that this is more efficient.
2009-09-08Amend the v12 installer to empty out the relative_url_cache andBharat Mediratta
relative_path_cache columns.
2009-09-08Update item::convert_filename_to_slug() to eliminate leading andBharat Mediratta
trailing hyphens.
2009-09-08Actually use the slug when creating new albums (instead of just converting theBharat Mediratta
filename over).
2009-09-08Trim leading and trailing hyphens from the slug.Bharat Mediratta
2009-09-08Remove unused $feed->link.Bharat Mediratta