Bharat Mediratta
e60edcdeba
Include the root in the tree output.
2010-12-17 17:30:00 -08:00
Bharat Mediratta
b6c202d572
Swap the order of the CSS and JS for performance. Fixes #1540 .
2010-12-16 22:18:04 -08:00
Bharat Mediratta
6e58fced20
Follow on to 16555935ee to clean up the
...
style a bit. Tracked in #1539 .
2010-12-16 21:01:51 -08:00
Kriss Andsten
16555935ee
Fetch permissions for non-albumbs by parent rather than by item, allowing the result to be cached.
2010-12-17 12:50:51 +08:00
Bharat Mediratta
7eaf49a6ca
Create a "tree" rest resource that can return the entire album tree in
...
a single fast request, among other operations. Fixes #1538 .
2010-12-16 20:38:01 -08:00
Bharat Mediratta
161a85d3f5
Enable profiling output in the HTML output for REST. Fixes #1535 .
2010-12-16 20:37:44 -08:00
Bharat Mediratta
7e31f97b4c
Improve Item_Model::as_restful_array() to take an array of fields so
...
that we only return the fields we care about. This improves
performance when retrieving large numbers of items. Fixes #1536 .
2010-12-16 20:37:00 -08:00
Bharat Mediratta
53a2652fd6
Create url::merge_querystring() which merges a query string into an
...
existing url. Fixes #1537 .
2010-12-16 20:36:00 -08:00
Bharat Mediratta
8a5bbc896b
Follow on to 1057436b7c -- cache the
...
users and groups as an array so that multiple calls will not call
ORM_Iterator->current() repeatedly.
2010-12-15 19:57:09 -08:00
Bharat Mediratta
1057436b7c
Cache the result of User_Model::groups() and Group_Model::users() and
...
invalidate it on save/delete for efficiency. Fixes #1529 .
2010-12-15 16:28:18 -08:00
Bharat Mediratta
b9e11a6f93
Don't show the "can't find ffmpeg" message to non-admins. Fixes #1528 .
2010-12-15 15:16:00 -08:00
Bharat Mediratta
cd48b89f31
Consolidate all the random code into a random helper that offers:
...
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-15 14:57:00 -08:00
Bharat Mediratta
45c63f4d11
Use mt_rand() instead of rand() since it provides better portability.
...
Fixes #1527 .
2010-12-15 12:48:56 -08:00
Bharat Mediratta
6fb0eb4e97
Follow on to d2be26e407 to update the
...
unit tests to reflect the proper type filtering for #1503 .
2010-12-15 12:24:31 -08:00
Bharat Mediratta
ff4c930338
Clean up golden file as a follow-on to
...
3c523bcac6 for #1499 .
2010-12-15 12:08:56 -08:00
Bharat Mediratta
18470a6001
Clean up xss golden file as a follow-on to
...
945e79b171 for #1478 .
2010-12-15 12:07:02 -08:00
Bharat Mediratta
f8890be62b
Follow on to d2be26e407 to convert tabs to spaces.
2010-12-15 11:57:46 -08:00
Bharat Mediratta
a0b7d397dd
Amend db00958cee by extending the system
...
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-15 11:44:29 -08:00
Bharat Mediratta
587284ab38
Move the test time limit code into Unit_Test since some parts of the
...
code (like ORM_MPTT) mess with the time limit which interferes with
the overall time limit set in Gallery_Unit_Test_Controller.
2010-12-15 11:17:22 -08:00
Bharat Mediratta
79740a2c77
Move photo/movie file extension validation into the model. Fixes #1524 .
2010-12-14 21:19:25 -08:00
Bharat Mediratta
6c46382fd0
Ok, do a real fix for #1499 by creating version 3 of the image_block
...
module and creating the image_count variable if it wasn't already set.
2010-12-02 08:38:16 -08:00
Bharat Mediratta
c3ef892126
Duh, set the image_block.image_count variable in the installer! This
...
issue was introduced in cdf0f7f765 which
was a follow-on for 3c523bcac6 which
fixes #1499 .
2010-12-02 08:32:59 -08:00
Bharat Mediratta
cdf0f7f765
In 3c523bcac6 (fix for #1499 ) I left out
...
the install() function which should set the image_block module to
version 2. Fix that here.
2010-11-29 21:02:19 -08:00
Bharat Mediratta
a36c894c63
Fix g2_import::g2_url() to only replace the $g2_base_url once at the
...
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-28 17:01:51 -08:00
Bharat Mediratta
5fb5d10e5a
Delete the temporary "user" value from the session when upconverting
...
the admin account post-install. Fixes #1511 .
2010-11-28 12:18:08 -08:00
Bharat Mediratta
eb010554ff
Replace self::func() with <helper_name>::func() for all public APIs
...
and constants to make overloading easier. Fixes #1510 .
2010-11-28 11:27:25 -08:00
Bharat Mediratta
76b6daefaa
Clean up phpDoc on get() a little more
2010-11-27 20:42:53 -08:00
Bharat Mediratta
f91819441c
Tighten up the phpDoc for get().
2010-11-27 19:48:16 -08:00
Kriss Andsten
d2be26e407
Slightly more invasive version, but cleaner on the eyes.
2010-11-28 11:44:23 +08:00
Kriss Andsten
2ed83fcd95
Patch from ticket 1503, making rest/items behaviour consisten with rest/item behaviour.
2010-11-28 11:44:23 +08:00
Bharat Mediratta
554ca2e683
Take into account the core.url_suffix configuration setting when
...
parsing REST urls. This fixes the problem that setting the url suffix
breaks REST. Fixes #1500 .
2010-11-22 22:01:11 -08:00
Bharat Mediratta
3c523bcac6
Create a module setting for the number of random images to show in the
...
sidebar. Fixes #1499 .
2010-11-21 13:51:07 -08:00
Bharat Mediratta
5f4ab7fd76
Shuffle up the way we figure out which image to rebuild next so that
...
multiple concurrent tasks actually work in parallel and don't stomp
on each other. Fixes #1498 .
2010-11-21 13:03:02 -08:00
Bharat Mediratta
12b77c7ef4
Move the sys_getloadavg() call into the template since that's what we're doing for other similar calls
2010-11-20 20:54:16 -08:00
Bharat Mediratta
13cc0087ec
I don't run these, I doubt anybody does. Deleting
2010-11-20 20:43:18 -08:00
Bharat Mediratta
dd2b815ab2
Add Bengali (bn_BD).
2010-11-18 21:33:30 -08:00
Bharat Mediratta
c1573d8ef2
Use sys_getloadavg() instead of reading /proc/loadavg. Fixes #1491 .
2010-11-18 13:09:10 -08:00
Bharat Mediratta
8d030cea64
Fix a bug where simultaneous deletes of the same item can result in it
...
deleting the first item row in the database. The root issue is a bug
in Kohana that's addressed in dca9b5f3fc
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-18 09:52:40 -08:00
Bharat Mediratta
add586bbb1
Create a task to clean up tag counts and delete tag with no associated
...
items. Fixes #1488 .
2010-11-14 15:53:30 -08:00
Bharat Mediratta
bf333aa762
Merge branch 'master' of github.com:gallery/gallery3
2010-11-14 15:48:20 -08:00
Bharat Mediratta
d49a6dcc99
Create a new task to resync tag task counts and delete tags that have
...
no associated items.
2010-11-14 15:45:30 -08:00
Bharat Mediratta
7efa9a5b87
Fix two issues with item deletion:
...
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 3d952f41c8 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-14 15:01:29 -08:00
Tim Almdal
86790d4464
Return the admin check as part of the block structure as opposed to printing
...
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-09 21:08:14 -08:00
Bharat Mediratta
e87c502ede
Tie the image cachebuster to the file mtime instead of
...
Item_Model::$updated since we want the url to be stable whenever
possible. Fixes #1482 .
2010-11-09 12:48:07 -08:00
Bharat Mediratta
f0781a9162
Add an extra line break after the RewriteBase line so that the
...
RewriteBase and RewriteRule lines don't get merged in the resulting
textarea. Fixes #1481 .
2010-11-09 09:17:13 -08:00
Bharat Mediratta
3d952f41c8
Fix a bug in the way that we add tags that causes it to be really slow
...
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-08 22:16:57 -08:00
Bharat Mediratta
dae8354491
Updated item::random_query() PHPdoc to include example usage
2010-11-08 19:52:43 -08:00
Bharat Mediratta
945e79b171
Add a pure javascript mechanism for filtering advanced properties. Partial fix for #1478 .
2010-11-08 13:51:51 -08:00
Bharat Mediratta
853a3acc9b
Implement module::clear_all_vars($module_name)
...
Also switch from using ORM to Database_Builder for the SQL because it's
cleaner, and clean up the test. Fixes #1479 .
2010-11-08 11:45:14 -08:00
Bharat Mediratta
35d933cf7f
Dump something in the logs if GalleryEmbed::init() fails.
2010-11-08 10:06:56 -08:00