summaryrefslogtreecommitdiff
path: root/core/controllers
AgeCommit message (Collapse)Author
2009-05-16Support renaming albums, photos and movies.Bharat Mediratta
Fixes ticket #278.
2009-05-14Fix save() to stop using ORM objects.Bharat Mediratta
2009-05-14Change the way we update view_count to use math instead of ORM for better ↵Bharat Mediratta
accuracy
2009-05-14Cache variables in core._cache so that we can retrieve them all in aBharat Mediratta
single query. In most cases, we were fetching 4-5 variables per page load, so this is 2-3x faster.
2009-05-14Beautify only the title, not the filenameBharat Mediratta
2009-05-13Fix a bad redirect.Bharat Mediratta
2009-05-13Add a little JS sugar to set the album directory name to the same asBharat Mediratta
the album title.
2009-05-13Allow admins to modify variables. This way when something goes wrong,Bharat Mediratta
we can tell them what to do in the forums and we don't have to build super smart admin UIs to help users with weird edge cases. This plus r20789 is probably a good enough fix for #232.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Add the "advanced settings" controller which lets you see all theBharat Mediratta
vars. We'll eventually turn this into a registry where you can edit settings directly (at your own risk).
2009-05-13Create a new "add" permission and require it at the controller levelBharat Mediratta
when adding photos/movies/albums
2009-05-13Unlink var/modules dir also when packagingBharat Mediratta
2009-05-13Clean out old dirs before packaging.Bharat Mediratta
2009-05-13Beautify the title of uploaded files. Convert underscores to spaces, ↵Bharat Mediratta
collapse multiple spaces, drop the extension. Fixes ticket #237
2009-05-13Log the complete exception information for exceptions that happen in tasks ↵Bharat Mediratta
so that we have some clue as to what went wrong
2009-05-12Fire off the module_change event whenever we install or uninstall a moduleBharat Mediratta
2009-05-09Move the thumb_proportion method into Theme_View and set it by defaultTim Almdal
if the page type is album. Leave a todo if we ever set up a theme default API
2009-05-08Don't rely on the file to have an extension (or better: don't throw anBharat Mediratta
error if we can't find one-- just assume its a photo).
2009-05-08Don't do ORM::factory() lookups on non-ints (thanks Romain LE DISEZ)Bharat Mediratta
2009-05-02Remove some unnecessary blank lines.Bharat Mediratta
2009-05-02Create item helper and move move_item(), remove_album_cover() andBharat Mediratta
make_album_cover() functions into it.
2009-05-02Move make_album_cover and remove_album_cover out of Item_Model andBharat Mediratta
into the core helper. Clean up interactions so that when we remove an album cover we pick a new one, or clean out the old album cover if there are no other choices.
2009-04-29Refactor the creation and removal of the album covers intoTim Almdal
make_album_cover and remove_album_cover methods in Item_Model. Usage: $photo->make_album_cover() $album->remove_album_cover()
2009-04-29Reset the parent thumbnail in Item_Model::delete instead of where theTim Almdal
delete was happening. This will insure that it is consistently done for all deletes and we don't have to remember to replicate the code.
2009-04-29Move the module::event("before_item_delete") into theTim Almdal
Item_Model::delete method. This will insure that it will get called for all events. Currently it is not being called for children of an album when the parent album is deleted.
2009-04-28auto install organize moduleBharat Mediratta
2009-04-22Mark a task as stalled if it's > 15 seconds old (because tasks should ping ↵Bharat Mediratta
back much faster than that)
2009-04-22Make the scaling based on the target thumbnail size that was specifiedTim Almdal
at thumbnail creation. This will remove the upscaling effect
2009-04-22Added method to determine proportion of current thumb_size to the default, ↵Chad Kieffer
150. Use this in the the default theme, or any other, to reduce the size of CSS widths and heights in albums, including .gItem.
2009-04-22Refactor the move functionality into a helper function so it can beTim Almdal
called from organize
2009-04-18Redirect item/NN requests to absolute urlsBharat Mediratta
2009-04-17Don't show the 'no toolkit found' message unless we actually didn't find oneBharat Mediratta
2009-04-17Fix for ticket 203: Don't interpolate the translation string for the l10n ↵Andy Staudacher
client translation input field
2009-04-06Fix up the quick-edit code on the photos page. Everything but "move"Bharat Mediratta
is implemented. Can't do move easily because it's tricky to handle the post-move redirect.
2009-04-05Don't do graphics detection in core_installer::install() because thatBharat Mediratta
gets run at scaffolding::package() time, not on the target machine. Instead, create a core module variable to trigger running graphics::choose_default_toolkit() on the first admin login after install. Fixes ticket #206.
2009-04-02Completely task-ify the localization scanning code and restore theBharat Mediratta
incoming_translation key cache. The only part of this that is not broken down is the l10n_client::fetch_updates() part.
2009-04-02Continuation of r20518. Remove all the cases were the csrf values inTim Almdal
views were being manually set. Also removed it from the Admin_View.
2009-03-31Add missing 2nd argument for Theme_View()Bharat Mediratta
2009-03-27Add missing csrf value.Bharat Mediratta
2009-03-27Put csrf token into Admin_View and Theme_View by default, then use itBharat Mediratta
directly wherever possible instead of access::csrf_token().
2009-03-26Rename $block_id to $id to fix ticket #192Bharat Mediratta
2009-03-26Convert language updates over to task form. It's still very rough,Bharat Mediratta
the task only has one step from zero to 100.
2009-03-26Normalize code style.Bharat Mediratta
2009-03-26Convert the L10n scanner from a library to a helper.Bharat Mediratta
In order to make the class static, I had to remove the index cache. I'll restore that and cache the index keys in the task context in a subsequent change. For now, I've put in a @todo to add the caching back in.
2009-03-21Refactor all translation strings that have ambiguous placeholders.Andy Staudacher
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'. Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with preserving CSS classes too...
2009-03-20Oops, we need UNIX_TIMESTAMP() instead of NOW()Bharat Mediratta
2009-03-20Do some data normalization so that the install files will have stableBharat Mediratta
ordering and known values. This way subsequent packaging runs won't have any differences unless there's a real data change.
2009-03-19Rejigger the way we do reinstalls while Kohana is running.Bharat Mediratta
core_installer::install() now takes an $initial_install param that allows us to enforce that we're doing a clean install. Use this in both the scaffolding and the unit test code. Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-18This is the real fix to ticket #154Tim Almdal
2009-03-18Fix for ticket #154: Remove the raw count and use the ORM wrapper.Tim Almdal