Bharat Mediratta
88afbeba07
Clean out old dirs before packaging.
2009-05-13 04:36:18 +00:00
Bharat Mediratta
e41b1795bd
Oops, use filename instead of name
2009-05-13 04:33:40 +00:00
Bharat Mediratta
37fabc5e07
Empty dir
2009-05-13 04:02:42 +00:00
Bharat Mediratta
dcdc6f1e77
Don't allow admins to delete the guest user. Fixes ticket #213
2009-05-13 04:01:38 +00:00
Bharat Mediratta
7abe611a62
Make the 'this user cannot be deleted' link actually not clickable.
2009-05-13 03:59:42 +00:00
Bharat Mediratta
9c24b5d94d
Variety of changes to the way we do user editing:
...
1) Allow admins to edit the admin bit of other admins
2) Don't allow admins to delete themselves (partial fix for ticket #213 )
3) Inline user::update(). Don't do form processing in helper methods!
4) Inline user::_get_edit_form() so that we can treat edit forms differently.
Trying to hard to make common functions makes for weird edge cases.
2009-05-13 03:56:50 +00:00
Bharat Mediratta
b9aeec634d
Colorize admin user rows to make them stand out
2009-05-13 03:44:55 +00:00
Bharat Mediratta
1344bd7009
Use the name field if the full_name field is empty.
2009-05-13 03:36:06 +00:00
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
99c26f30c6
Allow users to enter multiple tags at once, split by space, semicolon
...
or comma.
Fixes ticket #193 .
2009-05-13 01:43:47 +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
4093315390
Log password reset attempts. Fixes ticket #251 .
2009-05-13 00:47:20 +00:00
Bharat Mediratta
7008bfb5c3
Warn the user if they're attemping to reinstall into a database that
...
already has Gallery 3 tables. Otherwise, permit it to continue.
We key this off of the existence of the g3_items table. Theoretically
it's possible that the g3_items table is gone but other tables are
still there, which could mess things up. I'm not going to worry about
that for now.
Fixes ticket #175
2009-05-13 00:32:19 +00:00
Bharat Mediratta
847de44996
Fix the logical inversion of the transparency field. Now, 100% is max
...
transparency and 1% is min transparency (no transparency at all).
Fixes ticket #204 .
2009-05-13 00:09:43 +00:00
Bharat Mediratta
3b52b31c54
Use the module_change event to figure out if the rss module is
...
inactive. If it is, we need to alert the admin user.
2009-05-12 23:46:03 +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
93ca8e991d
Gracefully handle duplicate groups. Fixes ticket #280
2009-05-12 22:34:59 +00:00
Bharat Mediratta
71defb7d40
Add group::lookup_by_name()
2009-05-12 22:34:36 +00:00
Bharat Mediratta
823077f342
Fix a comment.
2009-05-12 22:31:54 +00:00
Bharat Mediratta
0864d7ca65
Allow configurable padding options
2009-05-12 22:27:34 +00:00
Bharat Mediratta
7c6276adb9
Deal with the user-entered g2 embed.php path a little more sanely so that if the user enters the path to G2 itself, we find the embed.php path from there.
2009-05-12 21:48:29 +00:00
Bharat Mediratta
b1ea27a1b9
Beautify the status text
2009-05-12 21:41:45 +00:00
Bharat Mediratta
df3a1e730e
Skip the copy if the watermark module is enabled *and* there's a watermark.
2009-05-12 05:56:27 +00:00
Bharat Mediratta
fdb17d75ce
Import keywords as tags.
...
Refactor the general flow of g2_import_task::import() to simplify it
and make it more sensible. It had gotten a little overgrown. It's
still a little overgrown, but I don't see an easy way to simplify it
from here.
2009-05-12 05:48:15 +00:00
Bharat Mediratta
c397cc73be
Don't divide by zero if there are no photos in the Gallery.
2009-05-12 04:22:05 +00:00
Bharat Mediratta
8ae6a7a144
Import tags.
2009-05-12 04:04:26 +00:00
Bharat Mediratta
61ad68f1e6
Deal gracefully with the case that the Gallery 2 instance didn't have
...
any resizes (or thumbnails).
Fix a case where we were over-weighting the max dimension for square
resizes and thumbs.
2009-05-12 02:12:39 +00:00
Bharat Mediratta
5dbe1e59d8
Add has_thumb() public API method
2009-05-11 20:17:03 +00:00
Bharat Mediratta
a70cbed1d0
Import comments. This was a lot easier than I thought it would be
2009-05-11 20:16:54 +00:00
Bharat Mediratta
de812e1e82
Refactor to support pagination and simplify the code.
...
- Simplify the public controller methods
- Fix a bug where missing thumbnails would cause a divide by zero error
- actually pay attention to the page # for pagination and limit the query accordingly.
2009-05-11 20:15:24 +00:00
Bharat Mediratta
a2c188ac37
Update exif lib to upstream r3901 which resolves the following tickets:
...
http://www.zenphoto.org/trac/ticket/1117
http://www.zenphoto.org/trac/ticket/1118
2009-05-11 19:19:13 +00:00
Tim Almdal
010c355ecf
Fix for #226
2009-05-11 18:13:19 +00:00
Bharat Mediratta
74b8937963
Framework for importing comments -- we don't actually do the import yet
2009-05-11 17:57:34 +00:00
Bharat Mediratta
62053b2c5c
Add some comments
2009-05-11 16:38:58 +00:00
Bharat Mediratta
6ec24f2f00
Don't attempt to interact with comments if the Gallery2 comment module is not installed.
...
Resolves ticket #276
2009-05-11 16:27:52 +00:00
Tim Almdal
11477cbc3e
Correct the reference to $item->id
2009-05-11 14:32:18 +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
8b33371e99
Index photos as they're added
2009-05-11 05:18:23 +00:00
Bharat Mediratta
891930ec2b
Don't accept negative capture dates from EXIF, they're probably just crap data.
2009-05-11 04:22:50 +00:00
Bharat Mediratta
977d0da9f3
Refactor the exif module to denormalize the stored data. This way we
...
have a single exif_record for each item instead of 1 per key. It's
about 5x faster to scan photos this way.
2009-05-11 03:53:44 +00:00
Bharat Mediratta
b706cb69ac
Reinstate abortCount code, originally added to exifer in G2:
...
http://gallery.svn.sourceforge.net/viewvc/gallery?view=rev&revision=13422
it was commented out in the ZenPhoto version. Filed upstream ticket
about this:
http://www.zenphoto.org/trac/ticket/1118
2009-05-11 02:37:12 +00:00
Bharat Mediratta
6dbd8aa002
Don't use ORM to delete old exif_keys.. it's too inefficient
2009-05-11 02:35:43 +00:00
Bharat Mediratta
8c776ffa6f
Add a cache in intel2Moto(). Because of the duplicate nature of the
...
calls to this function, this is a 1-2x order of magnitude performance
improvement.
2009-05-11 01:36:36 +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