summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2009-09-24Forgot to change the defaults theme names on initial install... DuhTim Almdal
2009-09-24Oops, forgot to change the install version number to match the upgrade ↵Tim Almdal
version number
2009-09-23Add a new api method gallery::find_file. This wraps the Kohana::find_file ↵Tim Almdal
function, but allows the extension to supplied as part of the filename. Changed the Edit permission dialog to use the new api method to locate the icons from the active theme.
2009-09-23set the version number to 13, so we will update the default themes in the ↵Tim Almdal
gallery vars
2009-09-23Fix a typoTim Almdal
2009-09-23Clone the photo::get_edit_form to the movies helper and use it to generate ↵Tim Almdal
the movie edit form. Fixes ticket #726.
2009-09-22Create a gallery error handler that traps php errors and rethrows them as ↵Tim Almdal
Exceptions. This fixes ticket #763
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-17Mark permission's display name for translationAndy 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-12Update version to "3.0 beta 3"Bharat Mediratta
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-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-08Fix line > 100 chars.Bharat Mediratta
2009-09-08Replace two preg_replace() calls with a single trim() call.Bharat Mediratta
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-08Remove unused $feed->link.Bharat Mediratta
2009-09-08Move specialized (pretty) url generation back into Item_Model so thatBharat Mediratta
we're not relying on overriding url::site() to do tricks around item urls. This means that you won't get item urls by doing url::site("albums/37"), for example, but it also means that we won't get pretty urls where we don't expect them (like in the action of a <form> element). Incidentally, this will help us move over to using the slug format because if you've got a bad character in a url, the edit forms will now work on it since they'll be id based.
2009-09-08Improve comment.Bharat Mediratta
2009-09-07Automagically generate pretty urls for movies, too.Bharat Mediratta
2009-09-07Fix a bug where we were not properly decoding the path in the fallbackBharat Mediratta
code in get_item_from_uri() by using relative_url() instead of relative_path().
2009-09-07Add the 'Internet Address' field to all items, along with properBharat Mediratta
validation for the fields.
2009-09-07Switch to using Item_Model::relative_url() for the url path.Bharat Mediratta
2009-09-07Remove unused item::validate_no_name_conflict() and a debug line.Bharat Mediratta
2009-09-07Add item::validate_url_safe() with a test.Bharat Mediratta
2009-09-07Add the slug to album, photo, and movie forms.Bharat Mediratta
2009-09-07Add support for a per-item "slug" which will be the user-visible urlBharat Mediratta
component for that given item. Album hierarchies are represented by nested slugs. By default, we convert the filename to a slug when you create an album, photo or movie.
2009-09-07Quiet down ffmpeg in movie::extract_frame()Bharat Mediratta
2009-09-05Bugfixes for locales::locale_from_http_request(), and adding tests.Andy Staudacher
(And the tests should illustrate that kohana 2.4's API doesn't quite fit our purpose of simply getting the best match between the accepted (client) and the installed (g3) locales.)
2009-09-05Change the module installer so that you don't need to provide your ownBharat Mediratta
install() function if all you're going to do is to set the version of the module from module.info into the database. This means that for some simple modules, you don't need an install.php file at all.
2009-09-04Add @todo to replace locales::locale_from_http_request()Bharat Mediratta
request::accepts_language() when we upgrade to Kohana 2.4
2009-09-04Add new locale preferences: Adding per session (cookie) locale preferences ↵Andy Staudacher
and check the browser's / OS' locale preferences. Ticket 582.
2009-09-02Change graphics::generate() API so that it doesn't return a boolean,Bharat Mediratta
instead it throws an exception if there's a problem. The normal case for graphics::generate is that it's going to succeed. It'll only fail if something un-handleable went wrong, so just use the resulting exception.
2009-09-02Deal with the aftermath of adding sharpen() calls. Since GD does notBharat Mediratta
support it, this causes crashes as soon as you try to use it, which breaks a bunch of our tests. Also, give the user some idea that sharpen() is missing in the UI. Fixes #689.
2009-09-01Allow anything to be made an album cover, except for direct childrenBharat Mediratta
of the root album (which has no visible album cover, so no point in offering that option). This fully resolves #705.
2009-08-31Don't include Make this the album's cover in context menu's for albums. #705Chad Kieffer
2009-08-31Add icons to context menu for albums. I'm open to other options, if folks ↵Chad Kieffer
think there's something better in the jQuery UI themeroller set.
2009-08-31XSS review fixes (mostly adding missing html::mark_clean()) calls.Andy Staudacher
2009-08-31Rename mark_safe() to mark_clean()Andy Staudacher
2009-08-30Merge commit 'upstream/master'Andy Staudacher
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-30Tabs to spaces cleanupAndy Staudacher
2009-08-30Rename clean_js to js_string and have it return a complete JS string (with ↵Andy Staudacher
delimiters) instead of just the string contents. Benefits: Using json_encode(), which is very robust. And as a user, it's clearer how to use this API compared to what it was before.
2009-08-30Change all instances of SafeString::of_safe_html() to html::mark_safe() in ↵Andy Staudacher
views.
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29Adding html::clean(), ::purify(), etc.Andy Staudacher