Commit Graph

3942 Commits

Author SHA1 Message Date
Bharat Mediratta
4b8d6beb5e Report the graphics toolkit in the platform block. 2010-09-14 19:40:54 -07:00
Bharat Mediratta
af24aa5abe The full_name field is required to be NOT NULL. Not really sure why
this is a hard requirement, but for now in User_Model::save() let's
use the empty string if the field itself is null.  Fixes ticket #1371.
2010-09-14 11:47:53 -07:00
Bharat Mediratta
1a0d76c43e When moving a single item, just copy its permissions from its parent
album.  This is totally legal since an items permissions must be the
same as its parent's, and it's much faster for large installs where
a complete recalculation can be very costly.  Should fix #1360.
2010-09-13 22:23:09 -07:00
Bharat Mediratta
19750cb0d5 When deleting items, choose the first *viewable* peer as the album
cover.  Normally, all items are equally viewable, but in our unit
tests we occasionally have the scenario where peers have different
viewability settings which is internally consistent although only
possible if you set the fields manually.
2010-09-13 22:02:19 -07:00
Bharat Mediratta
b08bf26d2d Ignore the private gallery settings if we're in the cli SAPI. It
breaks the upgrader.  Fixes #1361, thanks to Romain LE DISEZ.
2010-09-12 14:34:49 -07:00
Bharat Mediratta
a98841613a LOWER() the slug and name in the find_dupes functions since DISTINCT
is case sensitive, but our dupe validation is not.  Fixes ticket #1367.
2010-09-12 14:30:25 -07:00
Bharat Mediratta
19034d140e Rename the class to Item_Model_Core so that it can be overloaded.
Related to ticket #1368.
2010-09-12 13:35:50 -07:00
Tim Almdal
bd532f6c88 Merge branch 'master' of git@github.com:gallery/gallery3 2010-09-12 10:57:41 -07:00
Tim Almdal
ac64614d4d Path for ticket #1140. Add a size0 to the tag cloud. 2010-09-12 10:53:06 -07:00
Bharat Mediratta
f84c4a6192 Uniqify the name and slug when we move an item to a new location with
a conflict.  This fixes #1364.
2010-09-11 23:37:12 -07:00
Bharat Mediratta
9f11d8ad83 Log the JSON response on errors so that we can figure out what's going
wrong.  This will help diagnose #1364 which appears to be an
ORM_Validation_Exception, except the actual output is getting eaten by
the Organize SWF so we can't see it without snooping network traffic.
2010-09-11 22:38:47 -07:00
Bharat Mediratta
cc4a54a3d6 Fix bug introduced in b6fa33faf7. Don't
try to use $(this).data("reload.location") if it hasn't been set,
which can happen if Flash isn't available.  Fixes #1362
2010-09-11 22:18:53 -07:00
Bharat Mediratta
b4fb11f8d5 Only call $theme->item() if we're in a non admin theme. 2010-09-11 21:40:57 -07:00
Bharat Mediratta
bfd92ac6f2 Use $theme->item() instead of $theme->item, otherwise
isset($theme->item) may return true even when we don't have an actual
Item_Model in there.
2010-09-11 21:38:46 -07:00
Bharat Mediratta
c9c4f96100 Tune timeouts to work better on large installs. 2010-09-11 21:36:38 -07:00
Bharat Mediratta
14ae1fde25 Use the actual csrf token, not the placeholder (url::site doesn't
replace that).  Fixes ticket #1361
2010-09-11 10:41:47 -07:00
Bharat Mediratta
cef7ca9cf2 Change tag url form to be /tag/{name} from /tags/show/{id}. This is
a much friendlier url format.  Fixes ticket #1363.
2010-09-11 10:26:48 -07:00
Bharat Mediratta
34a71e7cd3 Verified. 2010-09-11 01:48:44 -07:00
Bharat Mediratta
509b647c65 upgrader/index does not require CSRF 2010-09-11 01:48:26 -07:00
Bharat Mediratta
67f45cfa78 Add CSRF protection to the upgrader. And update the CLI output so
that it tells you which modules failed to upgrade properly.  Fixes
ticket #1359.
2010-09-11 01:46:45 -07:00
Bharat Mediratta
a88b3f5808 Implement IdentityProvider_Gallery_Driver::admin_user() properly such
that it's not hardcoded to return the user with id 2.  Create
user::admin_user() which finds an appropriate admin and returns it.
Fixes #1358.
2010-09-11 00:47:48 -07:00
Bharat Mediratta
6640bd18ca Merge branch 'master' of github.com:gallery/gallery3 2010-09-10 23:09:52 -07:00
Bharat Mediratta
5892712b23 If the user is not an admin, don't 403 -- instead just redirect them
to the root album.  Fixes ticket #1356.
2010-09-10 23:01:47 -07:00
Bharat Mediratta
3936183446 Merge branch 'master' of github.com:gallery/gallery3 2010-09-10 08:41:12 -07:00
Bharat Mediratta
d698a19e0e Transfer deleted files to the active user. Or at least say that's what we're going to do, we actually transfer them to one of the admins 2010-09-10 08:40:30 -07:00
Tim Almdal
91d4ffa680 Change the color of the text in the close button to match the foreground color not the border color. 2010-09-09 20:36:18 -07:00
Bharat Mediratta
36f3a0387d Tighten up the "your gallery2 has xxx in it" info display. 2010-09-08 21:39:35 -07:00
Bharat Mediratta
5cd34160af Remove unnecessary g2_import CSS (which we were loading on every page
-- doh!) and replace it with a new "enumeration" list style in the
admin_wind CSS.  Reshuffle the page a little bit to make it look cleaner.
2010-09-08 21:34:16 -07:00
Bharat Mediratta
fe3dd6b55d Add information about disabling XCache during the import process. Fixes ticket #1352. 2010-09-08 21:12:20 -07:00
Bharat Mediratta
cbb6967405 Detect out-of-date modules and put up a message for site admins.
Fixes ticket #1353.
2010-09-08 20:59:40 -07:00
Bharat Mediratta
391a90e3ce Detect when a module fails to upgrade properly and put up an
informative message to help the user know that she needs to get a
newer copy of the module.  Fixes ticket #1189.
2010-09-08 20:36:22 -07:00
Bharat Mediratta
d7edbc211f Oops, forgot to update install() with the locale change that I made in
cc399bf4f0.  No permanent harm done,
though.
2010-09-08 19:35:10 -07:00
Bharat Mediratta
90ba0f9237 Show the number of photos/albums the user owns in the Admin > Users
page, and improve the message to explain what's going to happen to the
deleted user's items.  Partial fix for #1344, which I can't reproduce
now.
2010-09-08 00:50:30 -07:00
Bharat Mediratta
8fed0fb2e2 Updated for b6fa33faf7 2010-09-07 22:42:01 -07:00
Bharat Mediratta
4ba93b7cfc Return the size in bytes of the thumb, resize and full file.
Don't return thumb info if there's no thumbnail (eg: album w/ no contents)
Don't return file_url_public for albums

Fixes ticket #1347.
2010-09-07 22:23:54 -07:00
Bharat Mediratta
afeb3bb8c4 Fix typo. 2010-09-07 22:13:30 -07:00
Bharat Mediratta
00c1100d9d Add Macedonian. Fixes ticket #1345. 2010-09-07 21:30:53 -07:00
Bharat Mediratta
64f79f0698 Merge branch 'master' of github.com:gallery/gallery3 2010-09-07 21:06:50 -07:00
Bharat Mediratta
ab880120e6 The G2 import sets the sort_order to "asc"/"desc" but
Item_Model::get_position() expects "DESC".  This breaks navigation in
any album imported from G2 that has a descending sort order.

Two things:
1) Use "ASC"/"DESC" in G2 import for consistency
2) Make Item_Model::get_position() more robust against capitalization

Fixes ticket #1334.
2010-09-07 21:04:38 -07:00
Tim Almdal
5a26dd542a Merge branch 'master' of git@github.com:gallery/gallery3 2010-09-07 18:53:25 -07:00
Tim Almdal
b6fa33faf7 Create a setLocation javascript callback which is called everytime with the full url of the current album(non-REST). When the dialog is closed the window location is set to this value and the page gets loaded appropriately. 2010-09-07 18:53:17 -07:00
Bharat Mediratta
d398651c08 Disable selectFirst in the autocomplete box, which makes it a little
harder to select pre-existing tags, but avoids the problem where we
force the user to pick from existing tags.  Fixes ticket #1339
2010-09-07 00:34:41 -07:00
Bharat Mediratta
7c80bc0c3d Merge branch 'master' of github.com:gallery/gallery3 2010-09-06 22:20:32 -07:00
Bharat Mediratta
fa1fe47b6a Use the absolute site url when logging out of the admin site else we
wind up with weird url doubling effects.  Fixes ticket #1342.
2010-09-06 22:13:41 -07:00
Bharat Mediratta
2f94dfc67c Add "Options +FollowSymLinks" to the example mod_rewrite rules and put
it in a textarea for easy copying.
2010-09-06 19:40:36 -07:00
Bharat Mediratta
2f810ec126 Add "web_url" with the url to the web version of the item. Fixes ticket #1341. 2010-09-06 19:28:34 -07:00
Bharat Mediratta
886b88fccf Revert "change the Setswana locale from tn_ZA to tn_BW since it's mostly"
This reverts commit 2d948cb39f.

Valiant said that tn_ZA is right:
http://gallery.menalto.com/node/97840#comment-352865
2010-09-06 18:49:37 -07:00
Bharat Mediratta
8a36c24f39 Fix some broken identity APIs:
- add_user_to_group and remove_user_from_group should take Group_Definition instances
  to be consistent
- add_user_to_group and remove_user_from_group in drivers/IdentityProvider.php should
  not be static
2010-09-06 18:20:46 -07:00
Bharat Mediratta
cc399bf4f0 Track the language of the user receiving the notification and send the
email in that user's language.  Incidentally, send one email per
recipient, else we're leaking email addresses which is bad for
community sites. Bump notification module to v2 in the process.

Fixes ticket #1287.
2010-09-06 16:20:37 -07:00
Bharat Mediratta
ec2c9dad64 Verified checkpoint. 2010-09-06 15:20:04 -07:00