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
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
Bharat Mediratta
100a66d861
Fix a bunch of little issues in the version 16, 17, and 18 upgraders.
...
- Add a missing loop in 15->16 causing ticket #881
- Comment the blocks correctly
- Remove unnecessary loop from 18->19
2009-11-14 12:03:41 -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
79f700ef9f
Change the keys of the block arrays in block manager to be a md5 hash of module_name:block_id. This allows easier lookup of blocks to remove when modules
...
are being deactivated. Change the module activation/deactivation to call (activate|deactivate)_blocks instead of just the sidebar blocks. This insures
that when a module is deactivated any admin dashboard blocks are removed as well the site sideboard blocks. Fix for ticket #876 .
2009-11-12 13:13:34 -08:00
Tim Almdal
abe42002b2
Don't specify the default identity provider in the gallery installer. Let the user module use that as a trigger to set ownership of the root album to the administrator.
2009-10-31 14:13:35 -07:00
Tim Almdal
7ea13b3869
Normalize capitalization ticket #596
2009-10-28 12:15:52 -07:00
Tim Almdal
274d4680fa
Upgrade the gallery module to version 16 to reflect the refactoring of the user module into an identity provider. Change how we determine if there are available groups that we need to export
2009-10-26 10:05: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
b528fbde57
Change this files to use the API instead of referencing the group tables directly
2009-10-21 11:50:42 -07:00
Tim Almdal
2634a683b3
Revert "Create a gallery::plugin_path which returns the appropriate path to the module or theme. This checks for the existence of an application/modules or application/themes first."
...
This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
2009-10-04 10:12:22 -07:00
Tim Almdal
aa0529d557
Create a gallery::plugin_path which returns the appropriate path to the module or theme. This checks for the existence of an application/modules or application/themes first.
2009-10-04 10:12:21 -07:00
Tim Almdal
81eaf1e46c
Add functionality to activate sidebar blocks when the module is activated and deactivate the sidebar blocks when the module is deactivated.
2009-09-30 17:30:01 -07:00
Tim Almdal
e197e4017d
Set the gallery version to 15 and provide upgrade processing to set the default sidebar.
2009-09-30 17:02:48 -07:00
Bharat Mediratta
a0d13cd324
Clean up upgrader for version 14. Put {} around table name,
...
capitalize reserved words, use single quotes in the query to avoid
escaping the double quotes, remove table alias.
2009-09-28 08:03:14 -07:00
Tim Almdal
c97a88599e
Change gallery installer to do a direct update to the database, preppending gallery_graphics:: to each of the defined rules operations
2009-09-27 17:55:48 -07:00
Tim Almdal
467b74c310
This path requires the upgrader to be run and applies the following changes:
...
* moves the composite method back into core
* requires that the operation be fully qualified i.e. gallery_graphics::resize
* caches the graphics rules on each request
2009-09-27 15:24:51 -07:00
Bharat Mediratta
7432858420
Fix one more place in the installer where we referring to the old default
...
theme names.
Update installer.sql
2009-09-27 11:25:03 -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
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
dd31b1d39f
Revert "* Move the captured field into the exif module where it is created and populated."
...
This reverts commit a00619b812 .
2009-09-21 13:56:52 -07:00
Tim Almdal
ed6dfbc0e8
Revert "If captured had been used for any sort orders, reset back to weight"
...
This reverts commit c01e467466 .
2009-09-21 13:56:10 -07:00
Tim Almdal
c01e467466
If captured had been used for any sort orders, reset back to weight
2009-09-21 09:11:31 -07:00
Tim Almdal
a00619b812
* Move the captured field into the exif module where it is created and populated.
...
* Create a new API event get_sort_fields that allows modules to contribute new sort fields that they manage. the only condition is that the module needs to add it to the item table.
* Changed g2_import to call this api to get the allowable sort fields
* Changed album::get_edit_form to call this new api to get the available sort fields
Partial fix for ticket #627 , as the Capture date is not available until the exif module is installed.
2009-09-20 20:59:18 -07:00
Andy Staudacher
86996dcac7
Mark permission's display name for translation
2009-09-17 01:17:30 -07:00
Bharat Mediratta
6cfcab2a5e
Amend the v12 installer to empty out the relative_url_cache and
...
relative_path_cache columns.
2009-09-08 20:59:39 -07:00
Bharat Mediratta
3f997562de
Add support for a per-item "slug" which will be the user-visible url
...
component for that given item. Album hierarchies are represented by
nested slugs. By default, we convert the filename to a slug when you
create an album, photo or movie.
2009-09-07 15:42:08 -07:00
Tim Almdal
0aceba6f48
Fix for ticket #628 :
...
1) increased gallery module version to 11
2) added image_sharpened parameter to the gallery module
3) sharpen all resizes.
2009-08-29 15:20:27 -07:00
Bharat Mediratta
4828db003f
Remove 'ENGINE=InnoDB' specification from tables that we create. Use
...
the system's default table specification. Fixes ticket #597 .
2009-08-27 15:47:54 -07:00
Bharat Mediratta
5d0413631f
Bump the gallery version to 10 in install()
2009-07-29 16:44:51 -07:00
Bharat Mediratta
7438a9c889
Remove some scary debug code.
2009-07-29 16:40:01 -07:00
Tim Almdal
ead6a61d9e
Fix for ticket #576
...
Add a weight index to the item table and changed the retrieval of the maximum
weight to select weight from items order by weight desc limit 1.
Upgrades the gallery module to version 10
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca >
2009-07-30 01:59:07 +08:00
Romain LE DISEZ
23bb6eb7e3
Rename columns that use reserved SQL words : items.left and items.right
2009-07-25 19:06:54 +02:00
Romain LE DISEZ
831bf63c23
Upgrade code to migrate the ACL from integer to boolean.
...
Related to 719c59e040
2009-07-22 15:40:49 +02:00
Bharat Mediratta
c3f93957d7
Move the gallery version out of a module variable and into a constant
...
in the gallery helper. This will let us bump the version without
having to bump the gallery module number.
2009-07-14 10:56:10 -07:00
Bharat Mediratta
5b2c08d797
Set the gallery module version to 6 in install() (missed this in my last change).
...
Refresh the install.sql.
2009-06-28 17:37:14 -07:00
Bharat Mediratta
fcc57a4182
Modify the cache table to make id the primary key for consistency with
...
other gallery 3 tables. Update the driver to match, add more upgrader
code, update the installer block and change the gallery module version
to 6.
2009-06-28 16:48:29 -07:00
Bharat Mediratta
aa31e1f009
Tweak the cache implementation
...
1) Drop the *_modified key, we don't really need it. The modification date is not
relevant to our browser caching strategy.
2) Fix multiple issues with the Expires header and just hardcode it to the biggest
possibly value for code clarity.
3) print the $content out directly instead of using fwrite
4) Minor cleanups in the installer.
2009-06-28 16:24:51 -07:00
Tim Almdal
7a3310e91b
Change the cache column of the caches table to a large blob. This fixes ticket #485 and gives us the extra adavantage of not having to serialize the data (as the database driver handles that for us)
2009-06-28 13:14:47 -07:00
Tim Almdal
3000c78998
Update the version number and upgrade method for gallery to reflect the addition of the cache table.
2009-06-27 23:30:02 -07:00
Bharat Mediratta
b9b68e0952
Add a new "show credits" check box in the theme options so that you
...
can disable any module credits if you want. Update the theme to obey
it.
2009-06-23 16:05:32 -07:00
Bharat Mediratta
bfca0c7903
Refactor the install/upgrade code to be more flexible.
...
Add xxx_installer::upgrade($version) method so that upgrade stanzas
are separate from install stanzas. In the old code, to do an upgrade
meant that you had to re-evolve everything from the initial install
because we'd step through each version's changes. But what we really
want is for the initial install to start off in the perfect initial
state, and the upgrades to do the work behind the scenes. So now the
install() function gets things set up properly the first time, and the
upgrade() function does any work to catch you up to the latest code.
See gallery_installer.php for a good example.
2009-06-23 12:00:49 -07:00
Bharat Mediratta
acd54fefda
Fix a bug in gallery_installer where on an initial install we were
...
only implementing schema version 1. This caused install.sql to be
populated from version 1 which meant that after install you'd have to
run the upgrader. No harm done, and the pattern is fixed for the
future.
Alphabetize the tables so it's easier to find stuff.
2009-06-20 01:24:21 -07:00
Bharat Mediratta
5f878e169f
Move date/time format strings into a setting and bump the gallery
...
module to version 2. First test of our upgrade code!
2009-06-12 23:05:13 -07:00
Bharat Mediratta
3275401f69
change the version to beta 1
2009-06-05 17:44:36 -07:00
Bharat Mediratta
60d1bbc2d6
Move credits message into a variable, which can be changed in Admin >
...
Settings > Advanced. It's stored in the variable as an
internationalized string and localized at output time.
2009-05-29 20:24:42 -07:00
Bharat Mediratta
23884f7968
Fix a typo in the class name
2009-05-27 19:59:34 -07:00
Bharat Mediratta
88a3d43ba9
Update all references to the core application to now point to the
...
gallery module. This type of mass update is prone to some small bugs.
2009-05-27 16:17:29 -07:00