summaryrefslogtreecommitdiff
path: root/core/libraries
AgeCommit message (Collapse)Author
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-18Turn on IN_PRODUCTION mode now across the board. Create our own errorBharat Mediratta
page where we'll show whatever information is useful. Get rid of the IN_PRODUCTION hack in MY_View.php that we no longer need.
2009-05-15Only cache rows if they are objects, which assumes also that they are ↵Bharat Mediratta
instances of ORM.
2009-05-14Provide tooltips for Menu_Element_LinkBharat Mediratta
2009-05-14Overload ORM_Iterator to cache models as we pull them out of theBharat Mediratta
result set. This allows us to see the cache and avoid further lookups.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-12Fix a bug where deleting an album sometimes deletes everything in var. ↵Bharat Mediratta
Fixes ticket #282
2009-05-12parent() should return null if there's no parent idBharat Mediratta
2009-05-09Move the thumb_proportion method into Theme_View and set it by defaultTim Almdal
if the page type is album. Leave a todo if we ever set up a theme default API
2009-05-08Fix whitespace issuesBharat Mediratta
2009-05-08Use lower-case aliases for greater portability (thanks Romain LE DISEZ)Bharat Mediratta
2009-05-06Fix for ticket #72Tim Almdal
2009-04-02Continuation of r20518. Remove all the cases were the csrf values inTim Almdal
views were being manually set. Also removed it from the Admin_View.
2009-04-02Fix the issue identified in Tim Almdal
http://gallery.menalto.com/gallery_3.0_alpha_3_released?page=1#comment-304581 ticket #195
2009-03-31Add quick edit pane to resize images, ticket #189Chad Kieffer
2009-03-27Put csrf token into Admin_View and Theme_View by default, then use itBharat Mediratta
directly wherever possible instead of access::csrf_token().
2009-03-26Set csrf into the global theme for convenience.Bharat Mediratta
2009-03-26Convert the L10n scanner from a library to a helper.Bharat Mediratta
In order to make the class static, I had to remove the index cache. I'll restore that and cache the index keys in the task context in a subsequent change. For now, I've put in a @todo to add the caching back in.
2009-03-26Use pathinfo() instead of substr/strchr/etc to get the file extension.Bharat Mediratta
2009-03-26Optimize the way we lookup incoming translations.Bharat Mediratta
Undo last commit (accidentally committed benchmarking code)
2009-03-26Normalize exception format.Bharat Mediratta
2009-03-26Normalize exception string format.Bharat Mediratta
2009-03-20This change checks that the active theme is available and if its not,Tim Almdal
reverts to the default theme.
2009-03-20rollback of r20469... see trac #161Tim Almdal
2009-03-20Rather than moving the themeroller and all of its associated filesTim Almdal
into each theme. I chose to create methods Theme_View::file($path) and Admin_View::file($path). These methods check for a theme override file in the theme and return a link to it if it exists. So to override the themeroller files. just create a lib/themeroller in the theme and the files will be picked up.
2009-03-19Fix syntax errors.Bharat Mediratta
2009-03-18Fix for ticket 142: Choose plural form "other" for count == 0 (unless the ↵Andy Staudacher
locale has a specific plural form for zero)
2009-03-18Fix for ticket #142. Valiant: u might want to check the implicationsTim Almdal
of this.
2009-03-18Corrections based on feedbackTim Almdal
2009-03-17Fix for ticket #101Tim Almdal
2009-03-16Set $item and $tag in the Theme_View so that calls like $theme->item()Bharat Mediratta
which fall through to calling &View::__get() have an lvalue to return, else you can't return them by reference. Also, don't show sidebar blocks for pages that don't have an item so that the rss and tag modules don't break the search page.
2009-03-16Provide an empty sidebar by defaultBharat Mediratta
2009-03-16Clean up the login, maintenance login and required-top-level-login code.Bharat Mediratta
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
2009-03-15Remove the word 'album' from phpdoc.Bharat Mediratta
2009-03-15Move references to "album" out of ORM_MPTT since it's supposed to beBharat Mediratta
implementation agnostic.
2009-03-12Rename tag.html.php to dynamic.html.php as part of ticket #115Tim Almdal
creating Dynamic Albums. This name change reflects the usage better and allows multiple dynamic albums (including tags) to use the same page template.
2009-03-12Handle no prefix being set when building key/value table mapTim Almdal
2009-03-12Strip down the loin page (not sure if this is what bharat had in mind)Tim Almdal
2009-03-12Attempt to reduce the chance of replacing text in sql statements thatTim Almdal
is not a table name (but contained in braces) with the database prefix by building and maintaining a cache of database tables and prefixes.
2009-03-09Override the ORM_MTTP::children and ORM_MTPP::descendants methods inTim Almdal
the item model and always pass the orderby fields. This insures that all children or descendant calls will respect the album sort order.
2009-03-09Get rid of Task_Definition types: they're not necessary. ThisBharat Mediratta
incidentally fixes the the problem that admin/maintenance tasks have been broken.
2009-03-08Implement Sortable albums. Current sort fields include (CreationTim Almdal
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08Don't show the pager if there're no photos on the page.Bharat Mediratta
2009-03-05Avoid using default task types. Require task::get_definitions() toBharat Mediratta
specify a single type and ask for it appropriately in admin_maintenance. Specify a type for every existing task.
2009-03-05Implement a Maintenance mode as per ticket: #15Tim Almdal
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-27* Refactor task management methods from admin_maintenance.php toTim Almdal
task.php * Added a owner_id field to the task database * Modified the admin maintenace to show the owner of the task <<**** Requires a reinstallation of core ****>>
2009-02-27Replace the string [table_name] with {$prefix}table_name. SlowlyTim Almdal
working through setting up the database access to support table prefixes. (Ticket#68) Before going ahead, just wanted to check this approach... whatcha think?