summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
AgeCommit message (Collapse)Author
2011-01-09Merge remote branch 'upstream/master'colings
2011-01-09Moved item_Model::get_position() method to the Item helper. It now calls ↵Jérémy Subtil
the viewable() method on every query.
2011-01-08Improve gallery::find_file() to do a better job of detecting the ↵Bharat Mediratta
modules/themes directories. Fixes #1590.
2011-01-09Made t() calls parsable by localization scannerJoe7
2011-01-08Revert "Warn admins after login if their PHP install has the"Bharat Mediratta
This reverts commit 612ddd7050889974fc1f7e449e715b4c1129c0bb.
2011-01-08Use the code version when installing a module that has no installer,Bharat Mediratta
instead of hardcoding version 1. Fixes #1589.
2011-01-08Minor coding style fixJoe7
2011-01-08Refactored graphics::detect_toolkits() so ImageMagick and GraphicsMagick ↵Joe7
shares the same loop. Just as premarked as todo. Will make https://sourceforge.net/apps/trac/gallery/ticket/1555#comment:3 an even quicker task
2011-01-03Some small follow on fixes for #1559 and #1568:Bharat Mediratta
1) Make database changes in gallery_installer::install() instead of in installer/install.ql 2) Bump the version number in modules/gallery/module.info
2011-01-03case fixJoe7
2011-01-03Bugfix: input validation validates description up to length of 65535 chars, ↵Joe7
but DB trimmed data over 2048 chars. Converting column into TEXT type. Note: The effective maximum length of a VARCHAR in MySQL 5.0.3 and later is subject to the maximum row size (65,535 bytes, which is shared among all columns) and the character set used. In contrast to CHAR, VARCHAR values are stored as a one-byte or two-byte length prefix plus data. The length prefix indicates the number of bytes in the value. A column uses one length byte if values require no more than 255 bytes, two length bytes if values may require more than 255 bytes.
2011-01-02Tweak to include parent_id in resize call, for custom albums.colings
2010-12-29Improve the solution for #1545 by sorting the settings menu properlyBharat Mediratta
to be naturally ordered and case insensitive.
2010-12-28Truncating table first againt collides when converting INDEX into UniqueJoe7
2010-12-28Added changes to installer and upgrader scripts to support INSERT ON ↵Joe7
DUPLICATE KEY UPDATE SYNTAX in cache lib
2010-12-28Use db::expr instead of "new Database_Expression". Resolves #1560.Bharat Mediratta
2010-12-24Added Croatian as hr_HR. Fixes #1514.Bharat Mediratta
2010-12-23Create a way for controllers to exempty themselves from maintenanceBharat Mediratta
mode and private gallery mode by setting the following constants in the controller to true. ALLOW_MAINTENANCE_MODE ALLOW_PRIVATE_GALLERY Fixes #1411 and the subsequent refactoring fixes #1551 as well.
2010-12-23Fix PHPDoc for composite().Bharat Mediratta
2010-12-21Change MY_url::parse_url to use item::find_by_relative_url.Bharat Mediratta
2010-12-21Implement item::find_by_relative_url with tests.Bharat Mediratta
2010-12-21Change item::find_by_path() to check the relative_path_cache first,Bharat Mediratta
and only fall back the name/level comparison if there's no cached entry. Update tests accordingly.
2010-12-21Return an empty Item_Model when item::find_by_path failsBharat Mediratta
2010-12-21Tighten up item::find_by_path slightly. Augment the tests to coverBharat Mediratta
special characters in the file name ("+" is an edge case differentiator between rawurlencode and urlencode).
2010-12-22Minor changes to satisfy the G3 code standards.Kriss Andsten
2010-12-22Packaging + tests of Bharat's find_by_path routine.Kriss Andsten
2010-12-18Warn admins after login if their PHP install has theBharat Mediratta
session.use_trans_sid feature enabled, since this will cause random logouts. Partial fix for #1316.
2010-12-17Sort the Admin > Settings menu instead of relying on module activation order.Bharat Mediratta
Requires making Menu::get() return a reference. Fixes #1545.
2010-12-17Include the root in the tree output.Bharat Mediratta
2010-12-16Follow on to 16555935ee45a09b8d5b5b351222631ba2ce2132 to clean up theBharat Mediratta
style a bit. Tracked in #1539.
2010-12-17Fetch permissions for non-albumbs by parent rather than by item, allowing ↵Kriss Andsten
the result to be cached.
2010-12-16Create a "tree" rest resource that can return the entire album tree inBharat Mediratta
a single fast request, among other operations. Fixes #1538.
2010-12-16Create url::merge_querystring() which merges a query string into anBharat Mediratta
existing url. Fixes #1537.
2010-12-15Consolidate all the random code into a random helper that offers:Bharat Mediratta
random::hash() random::string() random::percent() random::int() So that we don't have lots of different ways to get random values all over the code. Follow-on to #1527.
2010-12-15Use mt_rand() instead of rand() since it provides better portability.Bharat Mediratta
Fixes #1527.
2010-12-15Follow on to d2be26e407aeb620082bcad2d5a45272868b38a1 to convert tabs to spaces.Bharat Mediratta
2010-11-28Delete the temporary "user" value from the session when upconvertingBharat Mediratta
the admin account post-install. Fixes #1511.
2010-11-28Replace self::func() with <helper_name>::func() for all public APIsBharat Mediratta
and constants to make overloading easier. Fixes #1510.
2010-11-27Clean up phpDoc on get() a little moreBharat Mediratta
2010-11-27Tighten up the phpDoc for get().Bharat Mediratta
2010-11-28Slightly more invasive version, but cleaner on the eyes.Kriss Andsten
2010-11-28Patch from ticket 1503, making rest/items behaviour consisten with rest/item ↵Kriss Andsten
behaviour.
2010-11-21Shuffle up the way we figure out which image to rebuild next so thatBharat Mediratta
multiple concurrent tasks actually work in parallel and don't stomp on each other. Fixes #1498.
2010-11-20Move the sys_getloadavg() call into the template since that's what we're ↵Bharat Mediratta
doing for other similar calls
2010-11-18Add Bengali (bn_BD).Bharat Mediratta
2010-11-18Use sys_getloadavg() instead of reading /proc/loadavg. Fixes #1491.Bharat Mediratta
2010-11-09Return the admin check as part of the block structure as opposed to printingTim Almdal
it directly to the output. I had problems with the admin check messing up the AJAX calls on the module update page. And it went away after this fix.
2010-11-08Updated item::random_query() PHPdoc to include example usageBharat Mediratta
2010-11-08Implement module::clear_all_vars($module_name)Bharat Mediratta
Also switch from using ORM to Database_Builder for the SQL because it's cleaner, and clean up the test. Fixes #1479.
2010-11-07Add Malay as 'Bahasa Melayu'Bharat Mediratta