summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2010-09-08Detect out-of-date modules and put up a message for site admins.Bharat Mediratta
Fixes ticket #1353.
2010-09-08Detect when a module fails to upgrade properly and put up anBharat Mediratta
informative message to help the user know that she needs to get a newer copy of the module. Fixes ticket #1189.
2010-09-07Fix typo.Bharat Mediratta
2010-09-07Add Macedonian. Fixes ticket #1345.Bharat Mediratta
2010-09-06Use the absolute site url when logging out of the admin site else weBharat Mediratta
wind up with weird url doubling effects. Fixes ticket #1342.
2010-09-06Revert "change the Setswana locale from tn_ZA to tn_BW since it's mostly"Bharat Mediratta
This reverts commit 2d948cb39fd2da6a5f966a10cbeb4f5d5caec5a3. Valiant said that tn_ZA is right: http://gallery.menalto.com/node/97840#comment-352865
2010-09-06Fix some broken identity APIs:Bharat Mediratta
- 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-06change the Setswana locale from tn_ZA to tn_BW since it's mostlyBharat Mediratta
Botswana anyway according to @sagemaniac in http://gallery.menalto.com/node/97840
2010-09-06Don't bomb on the race condition when we're trying to create theBharat Mediratta
gallery/_cache row and it already exists. Fixes ticket #1338.
2010-09-05Add Setswana (tn_ZA). Fixes ticket #1336.Bharat Mediratta
2010-09-05Force "Options +FollowSymLinks" since that's a requirement forBharat Mediratta
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-04Use the title of the root album as the site title for all RSS feeds.Bharat Mediratta
Fixes ticket #1307.
2010-09-02Follow on to 2a86446249c4782287e1e6e472f422b851c2fb47; fix a bug whereBharat Mediratta
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. http://github.com/gallery/gallery3/commit/2a86446249c4782287e1e6e472f422b851c2fb47
2010-09-02Handle the case of a completely private Gallery separately and justBharat Mediratta
put up a login page, very similar to the way that the maintenance mode login page works. Fixes ticket #1056.
2010-09-01One more adjustment for ticket #1216. The packaging process forcesBharat Mediratta
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-01Explain wtf we're doing in user_updated.Bharat Mediratta
2010-09-01Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2010-09-01Hopefully the third and final patch for #1216. Set the default from and ↵Tim Almdal
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-01Make RENAME TABLE operations idempotent so that in case there's aBharat Mediratta
failure of some kind we can restart the upgrade and it'll continue. Fixes ticket #1325.
2010-09-01Refine the patch for #1216. If the admin user changes their email address ↵Tim Almdal
update the sendmail from and reply_to fields in advanced settings. Also change this if the identity provider has changed.
2010-08-31Don't use HTTP_HOST to get the hostname. We force that toBharat Mediratta
"example.com" when we are using the CLI so we'll get inconsistent behavior between CLI and the web interface. For now hardcode it to be example.com so that it's clear. But to do it right we need an after_install step which actually fixes it up. And probably an after_upgrade step as well.
2010-08-31Patch for ticket #1216. Move the values that were in the sendmail config ↵Tim Almdal
file and store them as gallery module variables. Requires a version number bump to 37.
2010-08-29Don't concatenate two strings together as an argument for t() or t2();Bharat Mediratta
the l10n_scanner cannot parse it properly and drops those from the localization list. Fixes ticket #1284.
2010-08-29Put a message in the logs when we find a string that's notBharat Mediratta
concatenated. Concatenating them is not easy because the two strings can have different quoting (single vs. double quotes) and may have to be treated separately in the code. Fixes ticket #1321
2010-08-29Bump gallery module to v36 and add a favicon_url variable, which weBharat Mediratta
expose in Admin > Appearance > Theme Options and defaults to lib/images/favicon.ico. Thix fixes ticket #1312.
2010-08-29Move theme::get_edit_form_admin into admin_theme_options since that'sBharat Mediratta
the only place where it's used and the theme helper is loaded on every page view.
2010-08-28Add a "visible_title_length" variable that defaults to 15 and use thatBharat Mediratta
as the max title length when we do title truncation in the wind theme. Bump the gallery module to 35.
2010-08-22Add "captcha_protect_form" event that the recaptcha module grabs andBharat Mediratta
uses to add a captcha to the end of the first group in the form. If there are no groups, it adds the captcha at the end of the form. Updated user_profile and comment forms to use it.
2010-08-22Use better error messages in form validation.Bharat Mediratta
2010-08-22Get rid of the move dialog and move option. Instead, replace it withBharat Mediratta
a call to Organize with the appropriate album open. I have not yet figured out how to get the SWF code to highlight the active image, but that's coming. Partial fix for #1204.
2010-08-21Verify that the ffmpeg path still exists by using file_exists(). ThisBharat Mediratta
is a lightweight way to catch the case where ffmpeg gets deleted. Fixes ticket #1303.
2010-08-14Return the right content type for album thumbnails (based on the album ↵Bharat Mediratta
cover's mime type)
2010-08-14Don't expose members of an item that are not viewable by the end user.Bharat Mediratta
This leaks item ids, but no other information about the item. Fixes ticket #1292.
2010-08-14Add a key on access_caches.item_id. Without this, the Fix task queryBharat Mediratta
to find missing access_caches is very slow. Bump Gallery module to v34.
2010-08-14Rebuild access_caches rows if they're missing, as necessary. Fixes ticket ↵Bharat Mediratta
#1289.
2010-08-09Change the way that this works. Now instead of sending back the imageBharat Mediratta
metadata and the data itself JSON encoded, we just send back the raw data with the right Content-Type. This, combined with code in Item_Model::as_restful_array() that swaps in /rest/data urls as appropriate, means that the RESTful payload has consistent urls when permissions are in play.
2010-08-08Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2010-08-08Fix for ticket #1279. In admin themes sanitize the theme name before ↵Tim Almdal
checking that theme.info exists.
2010-08-08Cache the group ids for a day to trade off performance for security updates.Bharat Mediratta
Fixes ticket #1227.
2010-08-08whitespace fix.Bharat Mediratta
2010-08-08Use the gallery helper date/time functions wherever we format dateBharat Mediratta
time for the browser. Fixes ticket #1278.
2010-08-08We can always send back the header because Kohana buffers output.Bharat Mediratta
2010-08-08Require the size parameter. Optional params are confusing. And beBharat Mediratta
robust in the face of a missing data file (movies and albums lack resize, albums lack full size, some albums don't have a thumb if they have no contents, etc)
2010-08-08Allow item_rest::put() to replace the current data file. RemoveBharat Mediratta
data_rest::put() altogether; it's no longer necessary.
2010-08-07A new REST resource that allows access to view and modify the actualBharat Mediratta
contents of the file, which enables REST viewers to see the actual data which is useful when the files are privileged. Currently it returns the contents of the file in JSON encoded form, which may not be the best. Multipart/mime might be much better. Fixes ticket #1224.
2010-08-07Add the ability to replace the source data file in Item_Model::save().Bharat Mediratta
Refactor the rotate code in Quick_Controller to replace the data file, and then have gallery_event::item_updated_data_file() pick up after the change is saved, rebuild the image and handle album covers. This is much more portable than before and it will allow any mechanism (eg: REST) to replace the source image.
2010-08-07Add an index for left_ptr, since we use that in ORM_MPTT::parents()Bharat Mediratta
which is on every album page. Bump Gallery module version to 33.
2010-08-07Oops. Fix the upgrader path to add the weight column to the modules table.Bharat Mediratta
2010-08-06Add a "weight" column to the module table. This allows us to specifyBharat Mediratta
module ordering, which is currently being done in the moduleorder contrib module. By default, the weight will be the same as the id of the row which means that new modules will get added at the end of the list. This is covered in the upgrade case as well. The one gotcha is that we need to make sure that we don't try to sort by the weight column if the gallery module version is < 32, which is something we haven't done before. Fixes ticket #1272.
2010-08-04Add docs reflecting that we may skip some items that have invalid parent_idsBharat Mediratta