Tim Almdal
e204e18b3c
Refactor the graphic rules processing to accomplish 2 goals: First separate the grapics library from module supplied rules and secondly, allow for modules to provide new processing rules callbacks. graphics::generate will now look for <module_name>_graphics::<rule> methods.
2009-09-24 20:28:26 -07:00
Tim Almdal
cd240ebaad
Refactored the rebuild_dirty_images handler to simplify the counting and end processing. It was getting all confused with trying to figure out the completed and remaining. Now on initiation it sets the total images that are dirty and then counts the completed until it equals the total, then exits. Fixes ticket #771
2009-09-24 20:06:14 -07:00
Tim Almdal
970158f4d9
Fix unit tests by updating the xss golden file and declaring gallery_error::error_handler as static
2009-09-24 16:59:33 -07:00
Tim Almdal
c51c76dcaa
Fix Admin_View to look for the the variable active_admin_theme instead of active_site_theme. In addition check for the existence of THEMEPATH . instead of theme/
2009-09-24 15:06:40 -07:00
Tim Almdal
59c1c36639
Hopefully the last 2 errant occurrences of default as it relates to theme names
2009-09-24 14:50:30 -07:00
Tim Almdal
8e16cee2c3
Forgot to change the defaults theme names on initial install... Duh
2009-09-24 14:24:43 -07:00
Tim Almdal
054a8dedac
Oops, forgot to change the install version number to match the upgrade version number
2009-09-24 10:28:02 -07:00
Tim Almdal
d727716af7
Change the simple uploader dialog to use the new gallery::find_file api method.
2009-09-23 19:51:46 -07:00
Tim Almdal
8bab030883
Add a new api method gallery::find_file. This wraps the Kohana::find_file function, but allows the extension to supplied as part of the filename. Changed the Edit permission dialog to use the new api method to locate the icons from the active theme.
2009-09-23 19:45:23 -07:00
Tim Almdal
b038e9cbb4
set the version number to 13, so we will update the default themes in the gallery vars
2009-09-23 17:03:25 -07:00
Tim Almdal
65051a4bf7
Rename the default themes to wind and admin_wind. Change xss_data.txt file to reflect this move. Not completely moved yet, but the git st is rather large so lets commit this now as a base for the cleanup.
2009-09-23 15:06:17 -07:00
Tim Almdal
719b111219
Correct indentation
2009-09-23 14:38:38 -07:00
Tim Almdal
fed41eae6c
Fix a typo
2009-09-23 12:04:26 -07:00
Tim Almdal
b79129e365
Clone the photo::get_edit_form to the movies helper and use it to generate the movie edit form. Fixes ticket #726 .
2009-09-23 12:02:35 -07:00
Tim Almdal
bdb6b17bf5
Correct whitespace
2009-09-23 09:09:45 -07:00
Tim Almdal
faee4391a3
Remove a commented line I forgot to take out
2009-09-23 07:12:17 -07:00
Bharat Mediratta
91c99c9627
Simplify the "unchanged" status message.
2009-09-22 20:36:12 -07:00
Tim Almdal
28060d9dce
Create a gallery error handler that traps php errors and rethrows them as Exceptions. This fixes ticket #763
2009-09-22 14:25:52 -07:00
Tim Almdal
1dc3f375bf
Updated to Exifer r4477. Fixes ticket #763 .
2009-09-22 12:35:40 -07:00
Tim Almdal
1e7a2f5808
Implement the updated version of gallery3-vendor/exifer which has gettext replaced with calls to the gallery t method to provide translation. Fixes ticket 672.
2009-09-22 11:09:04 -07:00
Tim Almdal
bec620487a
Wrap the login form with a view in order to include a forgot password link. Fixes ticket #620
2009-09-22 09:48:24 -07:00
Tim Almdal
f1366d275e
Issue an information message if the user clicks "Save Settings" indicating that the key was not changed as it as identical. This addresses the obscure issue raised in ticket #756
2009-09-22 08:46:07 -07:00
Tim Almdal
b310fab1f8
Change the link on the "Be first to comment" link to do a request to the server to get the comment add form. Fixes ticket #699 .
2009-09-22 07:59:26 -07:00
Tim Almdal
bf93473de5
Revert "Change the exif module to respond to the gallery_ready event and check to see if gettext is installed. The 3rd party library used in the exif module expects gettext to be available. Rather than doing all the time use the gallery ready event to only do it when it might be needed. Fixes ticket #672 "
...
This reverts commit 33690a32bc .
2009-09-22 06:56:28 -07:00
Bharat Mediratta
e5a78d39ec
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
...
Conflicts:
modules/gallery/controllers/albums.php
2009-09-21 21:29:13 -07:00
Bharat Mediratta
529ded3388
2nd attempt at gracefully dealing with sort columns that contain
...
nulls. This time around, do a query to determine whether or not the
sort column has nulls in it. If it doesn't, then use our comparators
as before.
There are NULLs in the sort column, so we can't use MySQL comparators.
Fall back to iterating over every child row to get to the current one.
This can be wildly inefficient for really large albums, but it should
be a rare case that the user is sorting an album with null values in
the sort column.
Fixes #627
2009-09-21 21:28:00 -07:00
Bharat Mediratta
123afc9542
Set children_count to 0, photos have no children.
2009-09-21 21:22:07 -07:00
Bharat Mediratta
88350c5b88
Update the next/previous item calculations to match what we do in photos.php
...
Force the children_count to be zero, movies have no children.
Rename $photo to $movie everywhere.
2009-09-21 21:21:52 -07:00
Bharat Mediratta
9e6be40e31
Add viewable() protection to children() and children_count() calls.
...
This is not currently necessary (nor is it a security hole) because we
don't constrain permissions at the child level in the core, but it
makes our security audits easier and will enable the scenario where
somebody writes a module to add per-photo permissions.
2009-09-21 20:47:55 -07:00
Tim Almdal
33690a32bc
Change the exif module to respond to the gallery_ready event and check to see if gettext is installed. The 3rd party library used in the exif module expects gettext to be available. Rather than doing all the time use the gallery ready event to only do it when it might be needed. Fixes ticket #672
2009-09-21 13:33:45 -07:00
Bharat Mediratta
a6581ede0b
Fix Item_Model::get_position() so that our sort is stable when the comparison
...
row has a null value in the sort field. Fix for #627
Note: this changes get_position() to take an Item_Model instead of an id!
2009-09-21 11:35:27 -07:00
Tim Almdal
09f998e7a5
On the edit album form, add dirname and slug asa hidden fields, so that when the edits are being validated on input, the fields are found and can be referenced
2009-09-19 10:51:27 -07:00
Tim Almdal
cf89015a29
Change the fix for ticket #775 to always add the Add menu, but not add any items if the album directory is not writable.
2009-09-19 09:34:27 -07:00
Tim Almdal
4e6f2f1b4c
Don't display the add menu if the underlying operating system directory is not writable. THis should fix ticket #775
2009-09-18 23:53:48 -07:00
Tim Almdal
be84c7be25
* Changed the close functionality so the page is reloaded when the dialog is closed.
...
* Renamed the ServerAddCloseButton.
* Added Pause and Continue buttons. Now when add is clicked, A Pause button is shown,
once the adding is complete, the add button is reshown andpause button is hidden.
Clicking the pause button will hide it and show a continue button.
2009-09-18 12:17:58 -07:00
Tim Almdal
15c3f0b1aa
Refactor the server add javascript into a ui.gallery_server_add widget.
2009-09-17 21:26:55 -07:00
Andy Staudacher
2e23ae98c4
- Add theme->movie_menu() to whitelisted methods.
...
- xss_data checkpoint
2009-09-17 14:12:43 -07:00
Andy Staudacher
d050f0a246
Minor style fix: (string) $var, not (string)$var, and move the explicit cast down where it's needed.
2009-09-17 14:04:13 -07:00
Tim Almdal
2eeacd2656
use an implicit cast to convert the translated error message to a string as it is encoded by the json routines and will be treated as an object otherwise
2009-09-17 13:55:11 -07:00
Tim Almdal
6458b47e3e
Remove the update code introduced with 9d7d79. In addition, captialize MyISAM correctly.
2009-09-17 12:38:59 -07:00
Tim Almdal
48326ad017
Cleanup issues with the original fix for #779
2009-09-17 12:11:00 -07:00
Tim Almdal
6469763225
Reload the album when server_add dialog is closed
2009-09-17 11:10:15 -07:00
Tim Almdal
c7f8d8be6f
Don't try to creat an album that corresponds to the staging directory. Just add the contents of the staging directlyinto the album that server_add was invoked from. Fixes ticket #785
2009-09-17 10:57:22 -07:00
Tim Almdal
599d6377e8
Merge branch 'master' of git@github.com:gallery/gallery3
2009-09-17 10:56:07 -07:00
Tim Almdal
be1d49d017
Change the timeout on resubmitting the next task iteration to 25ms instead of. This allows the jQuery.ajax method to complete its processing. Otherwise, the browser can spend time thrashing around trying to send the next request.
2009-09-17 10:55:50 -07:00
Andy Staudacher
7c8e904388
Merge commit 'upstream/master'
2009-09-17 10:02:59 -07:00
Andy Staudacher
88c374dee8
Arg, fixing the "Sharing your Translations" text, thanks engineer@gmc
2009-09-17 10:01:15 -07:00
Tim Almdal
a5af531fbe
Don't show links as part of the auto complete list
2009-09-17 07:04:11 -07:00
Andy Staudacher
30b5c389e6
Fix: Make "Sharing your translations" a localizable string
2009-09-17 01:21:06 -07:00
Andy Staudacher
86996dcac7
Mark permission's display name for translation
2009-09-17 01:17:30 -07:00