Commit Graph
1034 Commits
Author SHA1 Message Date
Bharat Mediratta ee4f9eaa00 Beautify the title of uploaded files. Convert underscores to spaces, collapse multiple spaces, drop the extension. Fixes ticket #237 2009-05-13 02:52:09 +00:00
Bharat Mediratta 983dc66684 Display the server load average in the platform block. Fixes ticket #198. 2009-05-13 01:32:11 +00:00
Bharat Mediratta 238cb7ff6e Log the complete exception information for exceptions that happen in tasks so that we have some clue as to what went wrong 2009-05-13 01:21:09 +00:00
Bharat Mediratta ea693af59b Fire off the module_change event whenever we install or uninstall a module 2009-05-12 23:43:45 +00:00
Bharat Mediratta 2b79819323 Simplify delete() 2009-05-12 23:22:05 +00:00
Bharat Mediratta d05e7a05e9 Fix a bug where deleting an album sometimes deletes everything in var. Fixes ticket #282 2009-05-12 23:18:02 +00:00
Bharat Mediratta 1a36d4fec4 parent() should return null if there's no parent id 2009-05-12 22:48:59 +00:00
Bharat Mediratta 4b006a0419 fix comment typo. 2009-05-12 22:39:28 +00:00
Bharat Mediratta 0864d7ca65 Allow configurable padding options 2009-05-12 22:27:34 +00:00
Bharat Mediratta 5dbe1e59d8 Add has_thumb() public API method 2009-05-11 20:17:03 +00:00
Tim Almdal 010c355ecf Fix for #226 2009-05-11 18:13:19 +00:00
Tim Almdal 784b3aa34a Save and Restore the $_POST variable in tests that manipulate it so
other tests don't fail unexpectedly
2009-05-11 14:31:07 +00:00
Bharat Mediratta bc9bf5aa61 Avoid using ORM_MPTT::parents() in relative_path() so that we're not
calling ORM just to get paths.  This is a 10x performance increase.
2009-05-11 00:19:50 +00:00
Bharat Mediratta e947e771d3 remove_rule() should mark thumbs/resizes dirty also. Resolves ticket #269, thanks jstricker! 2009-05-10 21:57:09 +00:00
Bharat Mediratta b8d3478b95 Beautify the error message. 2009-05-10 21:32:27 +00:00
Bharat Mediratta c14194ab2d Warn users if they have suhosin.session.encrypt enabled that it'll break the uploader 2009-05-10 20:54:15 +00:00
Bharat Mediratta 99da170def Document why we skip the parent state for the root album. 2009-05-10 20:16:18 +00:00
Bharat Mediratta 8ba9480819 Disable default sorting for performance. (thanks Romain LE DISEZ) 2009-05-10 19:00:28 +00:00
Bharat Mediratta 57ef43afdb Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ) 2009-05-10 18:56:49 +00:00
Tim Almdal 3969145a36 Move the thumb_proportion method into Theme_View and set it by default
if the page type is album.
Leave a todo if we ever set up a theme default API
2009-05-09 22:22:30 +00:00
Bharat Mediratta 99ca6133b0 Force the 'GD Version' key to exist 2009-05-09 16:37:03 +00:00
Tim Almdal 9dccbe0d36 Fix for ticket #255
2nd iteration
2009-05-09 05:42:06 +00:00
Tim Almdal 4485a66b3e Fix for ticket #255 2009-05-09 05:28:35 +00:00
Bharat Mediratta cdc796aed4 Don't rely on the file to have an extension (or better: don't throw an
error if we can't find one-- just assume its a photo).
2009-05-08 19:32:51 +00:00
Bharat Mediratta bf3282cb3c Don't do ORM::factory() lookups on non-ints (thanks Romain LE DISEZ) 2009-05-08 19:01:45 +00:00
Bharat Mediratta 764f88defb Fix whitespace issues 2009-05-08 17:58:56 +00:00
Bharat Mediratta 0373cb0676 Use lower-case aliases for greater portability (thanks Romain LE DISEZ) 2009-05-08 17:48:30 +00:00
Bharat Mediratta 98e60731b2 Allow sorting by Capture Date. 2009-05-07 01:28:10 +00:00
Bharat Mediratta fc6bdbbbc8 Grab photo capture date and captions from EXIF/IPTC data.
- Add a "captured" column to the items table.
- Pull the DateTime EXIF field and put it into the captured column
- Pull the Caption EXIF & IPTC fields and put them into the description
  field if there was not already a value there
2009-05-07 01:18:31 +00:00
Bharat Mediratta 9cc5d05814 Don't throw up a warning if we can't detect whether or not the logs dir is writable. 2009-05-07 00:29:55 +00:00
Tim Almdal 2991831c03 Fix for ticket #72 2009-05-06 14:45:44 +00:00
Bharat Mediratta 890b716c8f Show the 'activate gd' button even when there's a warning about missing rotation 2009-05-06 04:27:23 +00:00
Chad Kieffer 812cb94b1e Usability update: include an "Activate Toolkit Name" button with available toolkits 2009-05-06 03:47:58 +00:00
Bharat Mediratta a676ac8e60 Don't try to make a new photo the album cover unless we can edit the parent album 2009-05-03 21:14:18 +00:00
Bharat Mediratta 2c61ad361e Remove some unnecessary blank lines. 2009-05-02 21:19:40 +00:00
Bharat Mediratta f2479cc65a Mark functions as static 2009-05-02 21:13:13 +00:00
Bharat Mediratta 4b790f5b76 Revert r20668; if we call our helper 'gallery' then it interferes with g2_import since it uses the Gallery2 embed interface which loads up G2's Gallery class as well. Grumble. 2009-05-02 20:49:09 +00:00
Bharat Mediratta 5950f49210 Rename core helper to gallery helper to indicate that it's more of an app-wide helper. 'core' doesn't make as much sense 2009-05-02 20:37:45 +00:00
Bharat Mediratta b4c9a97050 Create item helper and move move_item(), remove_album_cover() and
make_album_cover() functions into it.
2009-05-02 20:34:02 +00:00
Bharat Mediratta 0fd82598b5 Move make_album_cover and remove_album_cover out of Item_Model and
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-05-02 20:14:13 +00:00
Bharat Mediratta 486517fac5 Clean up API to be organized around the functionality it provides, not the feature its provided for. 2009-05-02 19:11:22 +00:00
Tim Almdal 71cac8bf15 Forgot these when i created the make_album_cover method 2009-05-01 23:32:35 +00:00
Tim Almdal 820cbdf1c3 Refactor the creation and removal of the album covers into
make_album_cover and remove_album_cover methods in Item_Model.
Usage: $photo->make_album_cover()  $album->remove_album_cover()
2009-04-29 15:57:29 +00:00
Tim Almdal 0d49773559 Reset the parent thumbnail in Item_Model::delete instead of where the
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-29 00:40:59 +00:00
Tim Almdal 9176dadfd6 Move the module::event("before_item_delete") into the
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-29 00:29:53 +00:00
Tim Almdal 1596c9f3da Change _adjust_thumb_size to adjust_thumb_size and make public so we
can access if from organize
2009-04-28 21:26:12 +00:00
Bharat Mediratta 234aed87e6 auto install organize module 2009-04-28 21:07:03 +00:00
Chad Kieffer 0f6d15b304 Fixed typo in comment, added docblock. 2009-04-24 04:55:48 +00:00
Bharat Mediratta 6b4fa9105f Disable automatic session id regeneration because ajax requests cause it to bomb. 2009-04-23 00:49:35 +00:00
Tim Almdal 79712cb0b4 Remove the negative weighting for albums. The are now positioned
based on the insertion order.
2009-04-22 22:20:19 +00:00