summaryrefslogtreecommitdiff
path: root/core/controllers
AgeCommit message (Collapse)Author
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.
2009-05-26Since organize is now in the preview stage and will probably beTim Almdal
rewritten by beta2, pull all of its "tenticles" back into itself and out of core or tags module.
2009-05-26clean up whitespace errors introduced in last commitBharat Mediratta
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-21Standardize the method namesTim Almdal
2009-05-21Check to make sure that our permission system is working and reportBharat Mediratta
back to our users in the edit permissions dialog.
2009-05-21Ignore query parameters in the file proxy. This strips off theBharat Mediratta
recently added cache buster query param.
2009-05-211) This provides the editting functionality for albums and photos in theTim Almdal
organize feature. 2) Remove the tag functionality at this point 3) Added a callback to handle validating conflicting names (only used by organize at this point. 4) Closes #231
2009-05-20Fix a typo; swapped uninstalled and installed.Bharat Mediratta
2009-05-19Collate install/uninstall messages. Fixes ticket #288Bharat Mediratta
2009-05-18verify csrf when installing/uninstalling modulesBharat Mediratta
2009-05-18Clean up tmp when packagingBharat Mediratta
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