summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
AgeCommit message (Collapse)Author
2009-12-04Reload relevant models after acquiring a lock so that we don't makeBharat Mediratta
database calls based on obsolete data, which can lead to data corruption. Fixes ticket #926.
2009-12-02Rename the "upload_limit" variable to "simultaneous_upload_limit" forBharat Mediratta
clarity, since it only limits concurrency not the number of actual uploads. Move the default-setting code into the upgrader so that we avoid creating the variable as a side-effect of the view (personal preference to avoid side-effect code since it's led to problems in the past).
2009-12-02Allow users to override the number of simulatenous uploads. This setting ↵Tim Almdal
won't appear until after they have attempted to upload at least once and have issues.
2009-12-02Use select() instead of select("*")Bharat Mediratta
2009-12-02Convert more database calls over to the new formatBharat Mediratta
- admin/maintenance page loads, the rebuild thumbs/resizes task works - Fixed up some conversion bugs in the Cache driver
2009-11-29Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/helpers/theme.php modules/gallery/libraries/Admin_View.php modules/gallery/libraries/Theme_View.php
2009-11-28Give the theme a chance to handle theme function callbacks as well.Bharat Mediratta
2009-11-27Move the theme fallback checking into theme::load_themes() so thatBharat Mediratta
we're calling it once per request.
2009-11-26Convert some more Database::instance() calls to db::build() form.Bharat Mediratta
2009-11-26ORM::find_all() now uses null as the default value for offset.Bharat Mediratta
2009-11-26Overload Database_Builder to add merge_where() which takes predefinedBharat Mediratta
where clauses and adds them to the existing query. Update all existing queries that take an additional where clause to use it.
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-26ORM::$rules now has a special meaning. Use $form_rules for ourBharat Mediratta
internal rules code.
2009-11-25Move the CSRF initialization into the constructor, I don't see why weBharat Mediratta
need it also in render().
2009-11-25Make globals work if you access the the variables directly withBharat Mediratta
$v->foo instead of doing it in a rendered template.
2009-11-25Fix set_global() to be more elegant and preserve local trumpingBharat Mediratta
2009-11-25Switch from stdClass to arrays for global data.Bharat Mediratta
2009-11-25Call execute() after upate() and insert().Bharat Mediratta
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- 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-24K2.4 has its own parentheses supportBharat Mediratta
2009-11-24Rename I18n to Gallery_I18n to avoid conflict with Kohana 2.4Bharat Mediratta
2009-11-21Don't use realpath when calculating the relative paths of embedded ↵Tim Almdal
references in css files. This fixes ticket #910
2009-11-20Paginator: don't try to set the position for "other" page types.Bharat Mediratta
2009-11-20Convert the Simple Uploader form over to Forge, and use the eventBharat Mediratta
model to let the Tags module modify it. This brings it inline with our other module-extensible form based interactions.
2009-11-19Revert "Create theme::get_var(), theme::set_var() methods to set the options ↵Tim Almdal
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 26114972c3388f065220b94a0d5962f20a6ccd0c.
2009-11-18Create theme::get_var(), theme::set_var() methods to set the options of the ↵Tim Almdal
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-18For album pagination, don't let the last_visible_position exceed theBharat Mediratta
total. Fixes ticket #903.
2009-11-17Redesign the way that we consider page types to create buckets of pageBharat Mediratta
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-16If an empty array is passed into set method, then make sure the tag value ↵Tim Almdal
being stored in the database is null, not "Array"
2009-11-15Fix a couple of errors in the refctored paginator code:Bharat Mediratta
1) We weren't showing previous page links for albums when we should have 2) We needed to wrap the results of url::merge() in url::site() so that we generate server-relative urls.
2009-11-14Oops. Fix a typo that the forced page_type to always be "tag"Bharat Mediratta
2009-11-14Fix pagination so that it does not require any domain specific logicBharat Mediratta
to support tags and search. Instead, just modify the page param to the current page.
2009-11-14Rename "pager" to "paginator" so that we differentiate page.html.phpBharat Mediratta
from paginator.html.php
2009-11-14Normalize pagination so that pager.html.php can handle pagination forBharat Mediratta
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-13Standardize the name of the blocks.Tim Almdal
2009-11-06Clean up the In place edit api:Tim Almdal
1) Only allow 1 in place edit to be active at a time (gets around the issue of using an id to identify the form 2) remove the add_ prefix from some of the api methods 3) clean up inconsistent naming
2009-11-06Create a user_menu for the top of the page. Change the login, edit profile ↵Tim Almdal
and logout portions of the banner to be rendered by the Theme_View::user_menu callback. This fires the user_menu event. Fixes Ticket #871.
2009-11-06Modify the Menu_Element class to allow for the specification of a custom ↵Tim Almdal
view. Also allow the root element to specify a css id.
2009-11-05Remove debugging statementTim Almdal
2009-11-05Refactor the in place editting in tags admin out into a separate widget as ↵Tim Almdal
part ofthe gallery module. Create the jQuery widget, form template and library to support generalized in place editting. Part of the fix for ticket #750.
2009-10-31Added a config parameter to the IdentityProvider to specifiy the ↵Tim Almdal
configuration. This allows the ldap installer to instantiate the ldap Identity provider to use in the install and uninstall methods
2009-10-29Add the add_user_to_group and remove_user_from_group api method calls. If ↵Tim Almdal
the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.
2009-10-29Correct the issues that identity::registered_users was calling the backend ↵Tim Almdal
provider everybody method
2009-10-29Add the admin_user api function to the identity helper and the ↵Tim Almdal
IdentityProvider interface.
2009-10-27Guard against developers who forget to internationalize label stringsBharat Mediratta
2009-10-27Remove Menu::compact() in favor of putting an if-then clause inBharat Mediratta
menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus
2009-10-27Change our menu building blocks to use PHP templates so that themesBharat Mediratta
can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
2009-10-24phpDoc fixes.Bharat Mediratta
2009-10-24Minor style tweaks.Bharat Mediratta
2009-10-22Change Identity adminstration to use the uninstall/install methods when ↵Tim Almdal
changing providers.