Bharat Mediratta
058a84ed76
Convert ORM::in() to ORM::where(.., "IN", ..) for K24 compatibility.
2010-01-06 17:04:44 -08:00
Tim Almdal
7778d4c050
Provide an error message when the sql in installer::empty_db fails. Also change the show tables not to specify a database as it will use the database in the active connection. Fixes ticket #963 .
2010-01-06 10:11:03 -08:00
Bharat Mediratta
c5d1443895
$offset should be null by default, not 0. Hold over bug from the K24 migration.
2010-01-05 12:05:37 -08:00
Bharat Mediratta
1cab4221ab
Merge branch 'master' of git@github.com:gallery/gallery3
2010-01-04 21:38:39 -08:00
Bharat Mediratta
6b8a52d328
Fix the logout link to send you back to the current url. The old
...
approach depended on having an $item, which is not the case on all
pages (eg: tag pages). Also, check the CSRF in the logout controller,
else you can use the logout link as a blind forwarder.
2010-01-04 21:37:51 -08:00
Tim Almdal
8ae0d4c196
Change uppercase NULL to lowercase null to match the gallery3 style guide
2010-01-04 13:00:15 -08:00
Tim Almdal
bfcd4efe92
Another K2.4 holder over... We had, when checking for position, ->where(, "=", NULL) which would never find any. It should have been ->where(, "is", NULL)
2010-01-04 12:39:48 -08:00
Tim Almdal
cbf9754922
Send an empty Pragma header and use the item-updated time in the last-modified header
2010-01-04 09:10:12 -08:00
Tim Almdal
6c5bb43629
Apply patch for Kohana ticket #2477
2010-01-04 09:09:21 -08:00
Tim Almdal
64e5efd57b
Add rest_controller::__call to the authorized controller methods
2010-01-02 17:09:40 -08:00
Tim Almdal
5b9801092b
Remove the Rest_Exception::trigger method.
2010-01-02 16:55:06 -08:00
Tim Almdal
07f8e256cf
Clean up gallery_rest helper test
2010-01-02 16:22:03 -08:00
Bharat Mediratta
11f6a3d1eb
Merge branch 'master' of git@github.com:gallery/gallery3
2010-01-02 15:49:17 -08:00
Bharat Mediratta
bad83900ae
Fix two issues with change_album_test()
...
1) We do support changing the name.
2) Choose a random name to avoid conflicts.
2010-01-02 15:48:58 -08:00
Tim Almdal
ff95c4079e
Fix the tag_rest helper tests
2010-01-02 15:48:54 -08:00
Tim Almdal
d4ad81e657
Correct unexpected error in gallery_rest_put_album_no_path_test
2010-01-02 15:04:43 -08:00
Bharat Mediratta
681613ac9e
Fix up tabs, leading <?php.
2010-01-02 14:52:10 -08:00
Bharat Mediratta
7369c68ddd
Ignore modules/gallery/views/kohana/error.php -- we're required to have that name by Kohana_404_Exception.
2010-01-02 14:47:59 -08:00
Bharat Mediratta
3ceb0d57ba
Update the expected response after modifying an album to match the
...
change I made in 20bd09ff00
2010-01-02 14:37:51 -08:00
Bharat Mediratta
7c03644777
Update the expected response after modifying an album to match the
...
change I made in 20bd09ff00
2010-01-02 14:33:31 -08:00
Tim Almdal
28597ba533
Correct file structure tests, Have the tests delete the userid they create so as not to impact other tests.
2010-01-02 14:31:59 -08:00
Bharat Mediratta
bff7b393ec
Stop checking the exact nature of all grups after install. It doesn't add any value.
2010-01-02 14:02:41 -08:00
Bharat Mediratta
183e65210a
Verified and updated.
2010-01-02 14:00:28 -08:00
Bharat Mediratta
b3023493f4
Clean the G2 base url so that we can't leak XSS vulnerabilities that
...
way (highly unlikely, but now it's impossible).
2010-01-02 14:00:00 -08:00
Bharat Mediratta
8e4c48837c
Verified and updated.
2010-01-02 13:56:01 -08:00
Bharat Mediratta
14b0ab08b4
Update the expected response after modifying an album to match the
...
change I made in 20bd09ff00
2010-01-02 13:53:01 -08:00
Bharat Mediratta
4ab2400d18
Add a cache buster to the resize and file urls. This fixes ticket
2010-01-02 13:47:28 -08:00
Bharat Mediratta
e413cb3011
Merge branch 'master' of git@github.com:gallery/gallery3
2010-01-02 12:53:56 -08:00
Bharat Mediratta
1544bea535
Add a tip about deactivating some modules to make importing faster.
...
Combine two tips into one.
2010-01-02 12:46:28 -08:00
Bharat Mediratta
f65794785a
Take precautions against deleting var/albums, var/thumbs or var/resizes.
...
Fixes ticket #916 .
2010-01-02 10:51:47 -08:00
Tim Almdal
77cabb056f
Merge branch 'master' of git@github.com:gallery/gallery3
2010-01-02 08:42:14 -08:00
Tim Almdal
1b3d20a0fb
Correct formatting in the uploadify dialog box for safari.
2010-01-02 08:42:06 -08:00
Bharat Mediratta
0be0111b74
Remove an obsolete todo.
2010-01-01 22:11:08 -08:00
Bharat Mediratta
c3075d8181
Add a code block showing how to add a mod_rewrite block to the old Gallery2 install to redirect urls to Gallery 3.
2010-01-01 21:58:07 -08:00
Bharat Mediratta
80e35affcb
Improve the PHPdoc for map()
...
We now expect to either get query parameters from the Gallery2 url so
we can pick off g2_itemId, or we'll get the rewrite url in the path
query param.
2010-01-01 21:56:29 -08:00
Bharat Mediratta
161366e51d
New controller for remapping Gallery 2 urls to Gallery 3 urls.
2010-01-01 21:02:52 -08:00
Bharat Mediratta
6d5d68a3f9
Start tracking the original G2 url and id for all entities. This will
...
allow us to map G2 image urls to the appropriate G3 ones.
2010-01-01 17:41:20 -08:00
Bharat Mediratta
df001700dd
Don't enable the rest module by default yet; we should make sure that
...
we do a more thorough security audit on it first.
2010-01-01 12:17:04 -08:00
Tim Almdal
1d42d5533a
Change the installer so that the rest module is automatically installed in new installations.
2010-01-01 09:55:06 -08:00
Tim Almdal
c4ba5b6f65
Correct the sql so that the guest and admin passwords are actually blanked as part of the export
2010-01-01 09:54:10 -08:00
Tim Almdal
ee1a032e4d
Merge branch 'master' into talmdal_dev
2009-12-31 18:32:24 -08:00
Bharat Mediratta
25f936e1ed
Show context menus for movie items. Fix for ticket #960 .
2009-12-31 18:13:42 -08:00
Bharat Mediratta
20bd09ff00
A more thorough fix for #745 and #940 . Stop using the referer to
...
guess how to send the user back. Instead, proxy the originating item
id through the edit forms so that we can tell exactly what page we
were on when we began editing. If we were viewing the item, then
redirect to its new url (in case it changed) to fix ticket #745 . But
if we were viewing some other item, then just stay on the current page
to fix #940 .
The page_type approach didn't work because you'd have the same
"collection" page_type when doing a context menu edit for an album.
2009-12-31 17:21:19 -08:00
Bharat Mediratta
a018e6235f
Modify Forge to accept multiple hidden params (this was broken by an
...
API change in K24).
2009-12-31 15:49:43 -08:00
Tim Almdal
40d496edee
Remove extra debug statement in rest_controller::access_key() and restructure the Rest_Tag_Helper_Test to only create items as required for test in each test.
2009-12-31 13:24:00 -08:00
Tim Almdal
0bb13da25a
Add quotes to the module name
2009-12-31 12:47:18 -08:00
Tim Almdal
4611eb2142
Move the set_active_user and normalize_request methods to rest.php helper
2009-12-31 12:32:54 -08:00
Tim Almdal
af10f0abcf
Only create the user or the target photo in the tests that require it.
2009-12-31 12:24:46 -08:00
Tim Almdal
1a12a5e3c8
Create a Rest_Exception class and use it to convey status to the client instead of calling rest::forbidden and other rest helper error messages.
2009-12-31 11:51:51 -08:00
Tim Almdal
732047e9c3
Create helper functions to create a test user, an album or image. Don't create the test objects in the setup, but do it in each test.
2009-12-31 09:56:41 -08:00