Bharat Mediratta
54be15191b
Overload Database_Builder to add merge_where() which takes predefined
...
where clauses and adds them to the existing query. Update all
existing queries that take an additional where clause to use it.
2009-11-26 18:47:40 -08:00
Bharat Mediratta
1fd0e14359
Convert all DB where() calls to take 3 arguments.
...
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-26 12:09:04 -08:00
Bharat Mediratta
0121bfd585
ORM::orderby -> ORM::order_by
2009-11-25 19:26:52 -08:00
Bharat Mediratta
60c20b0045
The html helpers no longer forces .js and .css suffixes to urls it generates (yay!)
2009-11-25 16:26:10 -08:00
Bharat Mediratta
4a417708f0
Kohana::show_404() -> throw new Kohana_404_Exception()
2009-11-25 13:51:33 -08:00
Bharat Mediratta
33b1d4b7ef
Convert one more instance of ORM::$loaded to ORM::loaded()
2009-11-25 13:41:53 -08:00
Bharat Mediratta
f50dbd992d
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
...
Conflicts:
modules/gallery/controllers/rest.php
2009-11-25 13:40:47 -08:00
Bharat Mediratta
2e420522ec
Preliminary work to cut over to Kohana 2.4
...
- Kohana::log() -> Kohana_Log::add()
- Kohana::config_XXX -> Kohana_Config::instance()->XXX
- Implement View::set_global in MY_View
- Updated Cache_Database_Driver to latest APIs
- ORM::$loaded -> ORM::loaded()
- Updated item::viewable() to use K2.4 parenthesization
2009-11-25 13:22:24 -08:00
Tim Almdal
dc67cf6481
Remove the REST_Controller and assorted baggage. Completes ticket #917
2009-11-25 13:02:14 -08:00
Tim Almdal
2d5c232c42
Refactor the album, movie and photo handling to remove the REST_Controller. Partial fix for ticket #917
2009-11-25 12:46:04 -08:00
Bharat Mediratta
3ed7a5af46
Rename I18n to Gallery_I18n to avoid conflict with Kohana 2.4
2009-11-24 19:24:02 -08:00
Bharat Mediratta
82ee5f9d33
Make get_add_form private and use it non-statically.
2009-11-24 16:37:59 -08:00
Bharat Mediratta
4c5e2000f6
Don't call theme::get_info() on themes that don't have a theme.info. Fixes #896 .
2009-11-20 21:23:11 -08:00
Bharat Mediratta
5e9bbbe490
Convert the Simple Uploader form over to Forge, and use the event
...
model to let the Tags module modify it. This brings it inline with
our other module-extensible form based interactions.
2009-11-20 19:41:45 -08:00
Tim Almdal
eb34b301a7
Add the ability to add tags for files that are uploaded using the simple loader.
2009-11-19 18:08:32 -08:00
Tim Almdal
f5b0ce1f47
Revert "Currently Admin_Theme_Options controller assumes that all the themes will provide the same values. This change corrects that assumption and moves the management of the theme options, including creating the form and updating the theme options into the theme."
...
This reverts commit 1692ee1308 .
2009-11-19 11:44:09 -08:00
Tim Almdal
57adefc5ba
Revert "Create theme::get_var(), theme::set_var() methods to set the options of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme."
...
This reverts commit 26114972c3 .
2009-11-19 11:44:01 -08:00
Tim Almdal
e1cc8a37b2
Revert "Use call_user_func instead of call_user_func_array as we don't need to pass the parameters by reference."
...
This reverts commit 75cc4962a2 .
2009-11-19 11:43:34 -08:00
Tim Almdal
75cc4962a2
Use call_user_func instead of call_user_func_array as we don't need to pass the parameters by reference.
2009-11-19 10:03:39 -08:00
Tim Almdal
26114972c3
Create theme::get_var(), theme::set_var() methods to set the options of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-18 15:36:13 -08:00
Tim Almdal
1692ee1308
Currently Admin_Theme_Options controller assumes that all the themes will provide the same values. This change corrects that assumption and moves the management of the theme options, including creating the form and updating the theme options into the theme.
2009-11-18 14:37:49 -08:00
Tim Almdal
4d4e81ca26
Create a helper to load the theme information from theme.info
2009-11-18 08:38:11 -08:00
Bharat Mediratta
1067e68292
Redesign the way that we consider page types to create buckets of page
...
types, and a subtype for specifics. Currently the top level bucket
collection, item, other
Here are the core subtypes so far:
collection: album, search, tag
item: movie, photo
other: login, reset, comment-fragment, comment
It's legal to create new page_subtypes whenever you want. Use the
appropriate page_type to get the coarse grain behavior that you want.
2009-11-17 14:04:45 -08:00
Bharat Mediratta
9e5714aee8
Tweak upgrader html and css so that we set opacity properly for rows
...
that are done, and disable the upgrade link when there're no actions
to take.
2009-11-15 16:14:30 -08:00
Bharat Mediratta
081ce9f6ca
Normalize pagination so that pager.html.php can handle pagination for
...
both albums and movies. Kohana's paginator is not quite sufficient
for this, so create our own pagination logic in Theme_View with only
the stuff we need.
Clearly document the variables available in pager.html so that themers
know how to use it.
Fixes ticket #626 .
2009-11-14 14:25:39 -08:00
Tim Almdal
0fe32a61f6
Standardize the name of the blocks.
2009-11-13 13:56:05 -08:00
Tim Almdal
def88149cc
Undo using the md5 hash of the module name and block_id, so duplicate blocks are no allowed again
2009-11-13 09:14:39 -08:00
Tim Almdal
a5a8cfd1bc
Re-generate the install.sql so that the keys of the block lists are an md5 hash of the module_name:block_id. Also change the packager so we delete the _cache variable for the module gallery not core.
2009-11-12 13:14:02 -08:00
Tim Almdal
421a975c0e
Improve error handling.
2009-11-11 18:47:10 -08:00
Tim Almdal
9546e19e34
Pass two of uploadify... remove the default.css file, removed the folder option and create a status area where succesful uploads are listed.
2009-11-10 12:49:13 -08:00
Tim Almdal
d8beb6f530
First cut at replacing swfupload with uploadify. Probably need to review the css and remove extra swfupload selectors. Also changed the dialog so tags can be entered for all the files being uploaded. Probably need to add better start processing so the batch is started before the first image is loaded. Maybe add a module variable so the number of simultaneous uploads can be initiated (currently hard ocded to 10.
2009-11-09 13:54:55 -08:00
Bharat Mediratta
d349400531
Fix an accidental old use of $photo in the extension renaming code.
2009-11-08 14:02:09 -08:00
Tim Almdal
88852c45ea
Modified the so that a where clause can be passed into item::get_position. Was also able to remove the sub-select from the calculation of the current position as we already have the child item containing the sort column value.
...
Also added a where clause that ignores albums to the get_position, children and children_count method calls in photos.php and movies.php
2009-11-04 09:50:49 -08:00
Tim Almdal
80b892915f
Change the order of processing to allow various modules to respond to the identity change event after the new provider instance has been installed. Once the new provider is installed and activated, we can uninstall the old provider which causes users to be deleted. This should be safer, because at this point our new identity provider has been installed, most of the ownership issues have been resolved by the identity change handlers. If there are any ownership issues left, the user deleted event has the new identity provider to uses to rectify them.
2009-10-31 14:22:12 -07:00
Tim Almdal
59b5a05496
Rename the login helper to auth. Create a login and logout helper function to allow for programmically login in and out.
2009-10-30 09:32:18 -07:00
Tim Almdal
7ea13b3869
Normalize capitalization ticket #596
2009-10-28 12:15:52 -07:00
Tim Almdal
051a7ae27a
Refix #812 , by removing the decoding in file_proxy instead of not encoding in Item_Model when creating the relative_path_cache.
2009-10-27 20:20:32 -07:00
Tim Almdal
3228f04ed9
Fire the logon_event when the user logs on. Cleanup some old code from the user/helpers/user.php file."
2009-10-27 14:01:53 -07:00
Tim Almdal
e4eedbce22
Change the upgrader so that it never deactivactes the gallery nor the current identity provider modules. Call module::deactive to truly deactivate the module.
2009-10-26 09:35:41 -07:00
Tim Almdal
24bd8e4c28
Remove a redundant comment, change the name of the identity change event to 'identity_before_change' and change the name of 'login::get_login_form()' to 'login::get_form()'
2009-10-24 11:32:09 -07:00
Tim Almdal
923a322ef5
Change the Admin_Identity_Controller to not destroy the session until after the new provider is installed.
2009-10-23 06:09:24 -07:00
Chad Kieffer
367e6a8983
Standardize message markup, make the update block status message translatable.
2009-10-23 05:41:41 -07:00
Tim Almdal
b74b131e25
Change Identity adminstration to use the uninstall/install methods when changing providers.
2009-10-22 22:30:25 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-22 13:11:03 -07:00
Tim Almdal
4cb9ec1d6d
Use the request::referrer to determine if we are editting the photo or album
...
from the context menu or from its photo or album page.
Fixes ticket #745 . Thanks to jankoprowski for the referrer approach.
2009-10-22 13:11:02 -07:00
Tim Almdal
51a69d7218
Merge branch 'master' into talmdal_dev
2009-10-22 07:40:50 -07:00
Tim Almdal
95f3eb3aad
When an album or photo is updated always return the photo/album location as
...
part of the response. This insures that if the internet address changes, then
the page will reload properly.
2009-10-22 07:37:14 -07:00
Tim Almdal
5e4576632d
Correct white space
2009-10-21 16:02:34 -07:00
Tim Almdal
b28c758d4a
Add lookup_group Identity provider API and change the permissions controller to use it to get the group it is modifying
2009-10-20 17:21:33 -07:00
Tim Almdal
7f9441c33d
Changes to Identity interface to allow for multiple Identity providers. What I've tested to this point, is you can install a new provider, switch to it, login as administrator, uninstall the default user module, reinstall the user module, switch back to the user module and login.
2009-10-20 16:32:22 -07:00