Bharat Mediratta
8135429430
Checkpoint.
2010-09-17 13:39:48 -07:00
Bharat Mediratta
3e1743b21f
Add a module variable containing extra paths to search for binaries.
...
Fixes ticket #1384 .
2010-09-16 20:43:48 -07:00
Bharat Mediratta
64dfccc4ed
Preserve the image extension on the temp file that we create for
...
rotating images. Some versions of GD won't work if we don't do this.
Fixes ticket #1375 .
2010-09-16 20:04:22 -07:00
Bharat Mediratta
de2f9baeee
Add a link to
...
http://codex.gallery2.org/Gallery3:Choosing_A_Graphics_Toolkit to help
users choose a graphics toolkit. Fixes ticket #1372 .
2010-09-16 19:34:42 -07:00
Bharat Mediratta
5e316f78c6
Restrict viewing user profile pages to registered users only, but
...
provide a "show_user_profiles_to" setting to allow admins to open it
up to everybody (choices there are "registered_users", "admin_users"
or "everybody"). Fixes ticket #1378 .
2010-09-16 15:17:00 -07:00
Bharat Mediratta
70f15c6662
Add ability to sort albums by name. Fixes ticket #1377 .
2010-09-14 19:51:43 -07:00
Bharat Mediratta
4b8d6beb5e
Report the graphics toolkit in the platform block.
2010-09-14 19:40:54 -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
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
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
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
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
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
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
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
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
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
ec2c9dad64
Verified checkpoint.
2010-09-06 15:20:04 -07:00
Bharat Mediratta
883d8f1e23
Whitespace.
2010-09-06 15:06:37 -07:00
Bharat Mediratta
cb22f23be6
Show the "view log" button for tasks that are running, in case they're
...
paused/abandoned for some reason and we want to know more details.
2010-09-06 14:16:26 -07:00
Bharat Mediratta
fc856b6aba
Add retry logic to the task framework. We retry 4 times with
...
increasing backoff and if that fails, we put up a manual "retry" link.
Fixes ticket #1270 .
2010-09-06 14:08:05 -07:00
Bharat Mediratta
2d948cb39f
change the Setswana locale from tn_ZA to tn_BW since it's mostly
...
Botswana anyway according to @sagemaniac in
http://gallery.menalto.com/node/97840
2010-09-06 14:05:48 -07:00
Bharat Mediratta
b3b6021b0a
Don't bomb on the race condition when we're trying to create the
...
gallery/_cache row and it already exists. Fixes ticket #1338 .
2010-09-06 12:41:27 -07:00
Bharat Mediratta
46b30ce949
Add Setswana (tn_ZA). Fixes ticket #1336 .
2010-09-05 22:00:28 -07:00
Bharat Mediratta
ca0c3b3e7f
Force "Options +FollowSymLinks" since that's a requirement for
...
mod_rewrite to work. This is surprisingly obscure in the docs.
Thanks to bromide for turning this up in
http://gallery.menalto.com/node/97791 !
2010-09-05 21:25:46 -07:00
Bharat Mediratta
c51b6ab38d
Fix full size dimensions after rotating an image on the photo view page.
...
The photo view page caches the dimensions of the full size and then
renders it in Javascript. But after rotation, those dimensions are no
longer valid. Create a new function on the items controller that
returns the appropriate dimensions, then add a hook on
$.gallery_replace_image and implement the hook on the photo view page
to have it make an async call to get the new dimensions.
Fixes ticket #1317
2010-09-04 15:54:07 -07:00
Bharat Mediratta
db75ac642a
Use the title of the root album as the site title for all RSS feeds.
...
Fixes ticket #1307 .
2010-09-04 13:40:39 -07:00
Bharat Mediratta
32d1892068
Follow on to 2a86446249c4782287e1e6e472f422b851c2fb47; fix a bug where
...
guest access to admin pages fails because we try to go to the login
page but you can't do that from the admin theme. Thanks to mamouneyya
for catching this.
2a86446249
2010-09-02 22:53:06 -07:00
Bharat Mediratta
511826a33c
Don't show the "(## errors)" part of the status message if there haven't been any errors.
2010-09-02 01:10:15 -07:00
Bharat Mediratta
2a86446249
Handle the case of a completely private Gallery separately and just
...
put up a login page, very similar to the way that the maintenance mode
login page works. Fixes ticket #1056 .
2010-09-02 00:50:02 -07:00
Bharat Mediratta
23b566e592
One more adjustment for ticket #1216 . The packaging process forces
...
the default email address for admin to be unknown@unknown.com and when
that happens the gallery_event::user_updated() event listener fires
and sets the default values. This is hard to work around, so let's
just roll with it and use unknown@unknown.com as our default placeholder.
So now, if an admin sets their email address and the current values
are unknown@unknown.com we adopt the admin's email address for the
site's mail_from/reply_to fields.
2010-09-01 23:52:19 -07:00
Bharat Mediratta
7477f0119c
Explain wtf we're doing in user_updated.
2010-09-01 23:39:01 -07:00
Tim Almdal
4a7fc1a981
Fix up the test so it works with the changes for ticket #1216 . Also note the name change to the first test. Form a php reflection point of view Sendmail_Test (class name) == sendmail_test (method name) so the method gets treated as a constructor instead of a test method.
2010-09-01 23:21:56 -07:00
Tim Almdal
545177c648
Merge branch 'master' of git@github.com:gallery/gallery3
2010-09-01 23:19:50 -07:00
Tim Almdal
04f6646b06
Hopefully the third and final patch for #1216 . Set the default from and reply-to addresses to an empty string. The first time the user model is saved, set the sendmail from and reply-to addresses. Requires an update to gallery version 38.
2010-09-01 23:19:43 -07:00