summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-02-28Merge commit 'upstream/master'Andy Staudacher
2010-02-28G2 importer stability improvements:Andy Staudacher
- Log which validation rule was violated if there's an ORM validation error. - Add more try / catch blocks to avoid abortion where possible.
2010-02-28Updates to upload CSS to make it themeable and RTL compatible. Use absolute ↵Chad Kieffer
positioning to handle upload button positioning. Remove color definitions to allow jQuery UI theme to set button colors. Consolidate upload dialog CSS to modules/css/gallery.css. Closes #885.
2010-02-28The vendor branch is being updated, so this reverts the revert ofTim Almdal
commit c91408d4a8b56730fde39df5e12d32111ace28b4.
2010-02-28Its not apppropriate to make changes to the Kohana system files. Please find ↵Tim Almdal
another way. Revert "Fix Kohana's internal cache for Gallery's usage pattern. Instead of deleting the whole find_files cache when ever include_paths (=core.modules) change, keep a separate find_files cache for each set of include_paths." This reverts commit fd94f4bec21a7deaa86d468da704a048d2be751e.
2010-02-28Fix Kohana's internal cache for Gallery's usage pattern. Instead of deleting ↵Andy Staudacher
the whole find_files cache when ever include_paths (=core.modules) change, keep a separate find_files cache for each set of include_paths. Benefits for Gallery: - There are about 3000 is_file() invocations for a photo / album page in a vanilla Gallery installation. These are mostly triggered by Kohana::find_file(). - Enabling internal_cache doesn't help at all (see explanation below). The number of is_file() invocations is about the same with or without this cache. - With this patch, more than 95% of these invocations are gone. The cache works as intended. Kohana's internal_cache for find_file wasn't working in Gallery because the cache would be emptied on each request after reading it from disk and before most lookups would run. 1. Bootstrap sets initial core.modules (= include path): forge, kohana23_compat, gallery. 2. Kohana::setup() loads find_file cache from disk. 3. Gallery loads list of active modules and themes, and updates the core.modules value (=include path), which forces the internal find_file cache to be empties (which makes sense). 4. Request processing starts, and thus 80+% of all Kohana::find_file() triggered is_file() invocations start off with an empty find_file cache. The patch doesn't have a significant impact on performance for Kohana applications which don't change their include paths at runtime (after Kohana::setup). And the patch should benefit all Kohana applications which have modules / extensions, i.e. which first need to bootstrap Kohana before they can load a list of all active modules from the database.
2010-02-28First step towards fixing ticket #1038: Allowing for custom page <title> in ↵Andy Staudacher
admin pages, just like in non-admin pages. TODO: Set $view->page_title in the many admin controllers we have. I just set it for admin_maintenance.php to show how it's intended to be used. I copied the title from views/admin_maintenance.html.php to the controller.
2010-02-28Fix profiler display: It looks like it was broken by an API change in the ↵Andy Staudacher
latest kohana upgrade.
2010-02-27Fix for ticket #1035: Make .htaccess access rules work for the case when ↵Andy Staudacher
index.php isn't part of generated URLs.
2010-02-27Fix for ticket #1037: Only show language drop-down when there's actually a ↵Andy Staudacher
choice.
2010-02-27Additional fixes for plural handling when deleting translations / marking ↵Andy Staudacher
them as untranslated.
2010-02-27Fix l10n client, copy of existing plural translation to form fields.Andy Staudacher
I think this was broken in a recent jQuery update. It used to allow matching the HTML "name" attribute with #name_value, now you need to match by elementName[name=name_value].
2010-02-27Client (UI) side fix for ticket #1042, based on a patch from fpaterno ↵Andy Staudacher
(Florent Paterno). Mark message as untranslated if the translation is empty.
2010-02-27Incremental fix for ticket #1042: Delete translation from ↵Andy Staudacher
outgoing_translations when the user submits a form with an empty translation.
2010-02-27Add more randomness to reset password mechanism.Andy Staudacher
2010-02-27Fix for ticket #1036 - Don't echo any sensitive information such as ↵Andy Staudacher
passwords, hashes or personally identifiable information.
2010-02-26Revert "Password value on installer must be hidden"Tim Almdal
This reverts commit b4922f4d176662976c9d2b249edf0e50a0cdfdf1.
2010-02-26Password value on installer must be hiddenfpaterno
2010-02-25Fix typo, thanks cajun100 for reporting!Andy Staudacher
2010-02-24Fix multi-column layout of language admin.Andy Staudacher
2010-02-24Add Faroese to the language list. Verified that it uses the default plural ↵Andy Staudacher
rules, thus no changes in Gallery_I18n.php or on the server side required.
2010-02-24Remove redundant print statement. rest::reply() does the print so having the ↵Tim Almdal
extra print statement could lead to problems.
2010-02-24Fix for ticket #1034: Fix db cache driver delete() call which was missed in ↵Andy Staudacher
a recent refactoring / fix.
2010-02-23Reset the active user to admin in all test cases where we change theBharat Mediratta
user to something else.
2010-02-23Merge branch 'master' of github.com:gallery/gallery3Bharat Mediratta
2010-02-23Fix Cache tests for recent Cache/Database.php driver fix.Andy Staudacher
Cache::delete($arg) allows for scalars and arrays, but Cache drivers' delete($arg) function always expects an array.
2010-02-23VerifiedBharat Mediratta
2010-02-23Merge branch 'master' of github.com:gallery/gallery3Bharat Mediratta
2010-02-23Name this release "Santa Fe". Fixes ticket #683.Bharat Mediratta
2010-02-23Fix translation cache for installations with 0 translations in the DB.Andy Staudacher
2010-02-22Merge commit 'upstream/master'Andy Staudacher
2010-02-22Fix typo in selector expression. The handling of view-only albums is still ↵Andy Staudacher
not great, but at least the code is closer to doing what it's supposed to.
2010-02-22Normalize invalid/missing G2 email addressesBharat Mediratta
2010-02-22Fix cut/paste typoBharat Mediratta
2010-02-22Fix server-add for German and other locales that use comma as decimal separator.Andy Staudacher
2010-02-22Fix for ticket #1027: Add index on cache key column.Andy Staudacher
(and fix the packager to truncate the cache table before packaging)
2010-02-22Merge commit 'upstream/master'Andy Staudacher
2010-02-21Revert "Fix Kohana's internal cache for Gallery's usage pattern."Andy Staudacher
Waiting for feedback from Kohana devevelopers before applying the patch to Gallery 3. This reverts commit 336c3bd264b4af2ab74fe1262366ad6f2e705451.
2010-02-21Performance improvement: Load all translations of a locale as one serialized ↵Andy Staudacher
array from the Cache. Until now, we loaded hundreds of translation messages row by row, and unserializing one by one at bootstrap time. That amounted to a significant percentage of the complete request time. This approach is more than 10x faster.
2010-02-21Fix delete() function of DB based Cache driver. It expected a scalar key / ↵Andy Staudacher
tag value, but it was always an array of keys / tags. (compare to system/libraries/Cache.php and the File.php driver)
2010-02-21Fix progress bar / maintenance tasks for locales that use comma as decimal ↵Andy Staudacher
separator, such as German.
2010-02-21Fix Kohana's internal cache for Gallery's usage pattern. Instead of deleting ↵Andy Staudacher
the whole find_files cache when ever include_paths (=core.modules) change, keep a separate find_files cache for each set of include_paths. Benefits for Gallery: - There are about 3000 is_file() invocations for a photo / album page in a vanilla Gallery installation. These are mostly triggered by Kohana::find_file(). - Enabling internal_cache doesn't help at all (see explanation below). The number of is_file() invocations is about the same with or without this cache. - With this patch, more than 95% of these invocations are gone. The cache works as intended. Kohana's internal_cache for find_file wasn't working in Gallery because the cache would be emptied on each request after reading it from disk and before most lookups would run. 1. Bootstrap sets initial core.modules (= include path): forge, kohana23_compat, gallery. 2. Kohana::setup() loads find_file cache from disk. 3. Gallery loads list of active modules and themes, and updates the core.modules value (=include path), which forces the internal find_file cache to be empties (which makes sense). 4. Request processing starts, and thus 80+% of all Kohana::find_file() triggered is_file() invocations start off with an empty find_file cache. The patch doesn't have a significant impact on performance for Kohana applications which don't change their include paths at runtime (after Kohana::setup). And the patch should benefit all Kohana applications which have modules / extensions, i.e. which first need to bootstrap Kohana before they can load a list of all active modules from the database.
2010-02-21Revert "Fix Kohana's internal cache for Gallery's usage pattern."Andy Staudacher
This reverts commit 5ddd7c9677b644396981de7df8176a3b168ffe21.
2010-02-21Fix Kohana's internal cache for Gallery's usage pattern.Andy Staudacher
Adds a core.internal_cache_read_only config variable to Kohana's internals. Kohana's internal_cache for find_file wasn't working in Gallery because the cache would be emptied on each request after reading it from disk and before most lookups would run. 1. Bootstrap sets initial core.modules (= include path): forge, kohana23_compat, gallery. 2. Kohana::setup() loads find_file cache from disk. 3. Gallery loads list of active modules and themes, and updates the core.modules value (=include path), which forces the internal find_file cache to be empties (which makes sense). 4. Request processing starts, and thus 80% of all Kohana::find_file() triggered is_file() invocations start off with an empty find_file cache. In the case of my small Gallery installation, we're talking about 3100 is_file() invocations per request with or without internal_cache enabled. With this fix, this number is down to 800 invocations. The basic idea is that we treat the cache as read only and don't write any (possibly dirty) values to it in memory until we're sure that the include path won't change later on in the request processing. Once we know the list of active modules and themes, we can update core.modules and finally flip the read-only state of the cache and start writing to it.
2010-02-21Add Menu::add_before()Bharat Mediratta
2010-02-21Merge commit 'upstream/master'Andy Staudacher
2010-02-21Fix random queries (such as for the random image block) for locales that ↵Andy Staudacher
don't use a period as decimal separator of floating point numbers (such as de_DE). (Integrating a fix Kohana's SQL generation for floating point numbers. See http://dev.kohanaframework.org/issues/2636.)
2010-02-20When using rest::reply(), don't call var_export() if the response is empty.Bharat Mediratta
2010-02-20Add link to edit user group names. Closes ticket #1028.Chad Kieffer
2010-02-19Fix the resize_url and file_url in as_restful_array()Bharat Mediratta