summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-16Enable profiling output in the HTML output for REST. Fixes #1535.Bharat Mediratta
2010-12-16Improve Item_Model::as_restful_array() to take an array of fields soBharat Mediratta
that we only return the fields we care about. This improves performance when retrieving large numbers of items. Fixes #1536.
2010-12-16Create url::merge_querystring() which merges a query string into anBharat Mediratta
existing url. Fixes #1537.
2010-12-16Detect safe_mode and abort the install. Fixes #1534.Bharat Mediratta
2010-12-15Follow on to 1057436b7c483c60b3c128fab993a3b78fac7093 -- cache theBharat Mediratta
users and groups as an array so that multiple calls will not call ORM_Iterator->current() repeatedly.
2010-12-15Cache the result of User_Model::groups() and Group_Model::users() andBharat Mediratta
invalidate it on save/delete for efficiency. Fixes #1529.
2010-12-15Don't show the "can't find ffmpeg" message to non-admins. Fixes #1528.Bharat Mediratta
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 update theBharat Mediratta
unit tests to reflect the proper type filtering for #1503.
2010-12-15Clean up golden file as a follow-on toBharat Mediratta
3c523bcac6e902973c5891c02842254eaecd33a4 for #1499.
2010-12-15Clean up xss golden file as a follow-on toBharat Mediratta
945e79b17182f7c96eb4b566bd41d26b5f8c4288 for #1478.
2010-12-15Follow on to d2be26e407aeb620082bcad2d5a45272868b38a1 to convert tabs to spaces.Bharat Mediratta
2010-12-15Amend db00958cee5e7373cf4bc439d65e687e7ef2d985 by extending the systemBharat Mediratta
user_agents.php instead of replacing it. This lets us avoid having to reformat the file to get File_Structure_Test to pass and will let us take advantage of further improvements ot the Kohana version of the file. Additional fix for #1436.
2010-12-15Move the test time limit code into Unit_Test since some parts of theBharat Mediratta
code (like ORM_MPTT) mess with the time limit which interferes with the overall time limit set in Gallery_Unit_Test_Controller.
2010-12-14Move photo/movie file extension validation into the model. Fixes #1524.Bharat Mediratta
2010-12-14Merge branch 'master' of github.com:gallery/gallery3Bharat Mediratta
2010-12-09Fixed path to loading-small.gif. Thanks serged!Chad Kieffer
2010-12-02Ok, do a real fix for #1499 by creating version 3 of the image_blockBharat Mediratta
module and creating the image_count variable if it wasn't already set.
2010-12-02Duh, set the image_block.image_count variable in the installer! ThisBharat Mediratta
issue was introduced in cdf0f7f765a5bd5e0d5619d345bdc6aba069c555 which was a follow-on for 3c523bcac6e902973c5891c02842254eaecd33a4 which fixes #1499.
2010-11-29In 3c523bcac6e902973c5891c02842254eaecd33a4 (fix for #1499) I left outBharat Mediratta
the install() function which should set the image_block module to version 2. Fix that here.
2010-11-28Fix g2_import::g2_url() to only replace the $g2_base_url once at theBharat Mediratta
beginning of the url string. Also, only do this when we're about to put it into the map, not when we're getting the g2 url else the url is mangled for other purposes. Fixes #1512.
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-22Take into account the core.url_suffix configuration setting whenBharat Mediratta
parsing REST urls. This fixes the problem that setting the url suffix breaks REST. Fixes #1500.
2010-11-21Create a module setting for the number of random images to show in theBharat Mediratta
sidebar. Fixes #1499.
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-20I don't run these, I doubt anybody does. DeletingBharat Mediratta
2010-11-18Add Bengali (bn_BD).Bharat Mediratta
2010-11-18Use sys_getloadavg() instead of reading /proc/loadavg. Fixes #1491.Bharat Mediratta
2010-11-18Fix a bug where simultaneous deletes of the same item can result in itBharat Mediratta
deleting the first item row in the database. The root issue is a bug in Kohana that's addressed in dca9b5f3fc8e80ee0667cac88d688e2287b1e7f4 but in this change we deal with the fact that reloading an item can result in an instance of the item that's unloaded. In those cases, we should just ignore it and move on. Fixes #1489.
2010-11-18Fix a bug in ORM where calling reload() on an unloaded instance returns theBharat Mediratta
first instance in the database, which is super bad. Kohana ticket: http://dev.kohanaframework.org/issues/3397 Related G3 ticket: http://sourceforge.net/apps/trac/gallery/ticket/1489
2010-11-14Create a task to clean up tag counts and delete tag with no associatedBharat Mediratta
items. Fixes #1488.
2010-11-14Merge branch 'master' of github.com:gallery/gallery3Bharat Mediratta
2010-11-14Create a new task to resync tag task counts and delete tags that haveBharat Mediratta
no associated items.
2010-11-14Fix two issues with item deletion:Bharat Mediratta
1) We're compacting tags on every deletion which is slow. Since we delete albums in batch, we should just do one tag compaction at the end. Fixes #1487. 2) Issue introduced in 3d952f41c8d90b5c217616fb060697f93fb9db07 where we trigger an item_related_update in tag::clear_all(). Since tag::clear_all() is called when we delete an item, this causes the search module to attempt to index a deleted item. Move that triggering upstream.
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-09Tie the image cachebuster to the file mtime instead ofBharat Mediratta
Item_Model::$updated since we want the url to be stable whenever possible. Fixes #1482.
2010-11-09Add an extra line break after the RewriteBase line so that theBharat Mediratta
RewriteBase and RewriteRule lines don't get merged in the resulting textarea. Fixes #1481.
2010-11-08Fix a bug in the way that we add tags that causes it to be really slowBharat Mediratta
when adding a tag to lots of items. Tag_Model::save() would call item_related_update for every tag related to an item upon save which is an O(N!) operation. Fixes ticket #1412.
2010-11-08Updated item::random_query() PHPdoc to include example usageBharat Mediratta
2010-11-08Add a pure javascript mechanism for filtering advanced properties. Partial ↵Bharat Mediratta
fix for #1478.