diff options
| author | shadlaws <shad@shadlaws.com> | 2013-02-27 07:11:52 +0100 |
|---|---|---|
| committer | shadlaws <shad@shadlaws.com> | 2013-02-27 07:11:52 +0100 |
| commit | 891a24151ee7dd197c623b4f482f260009d67096 (patch) | |
| tree | e8d5d9b68109faaa669e4da5e6db7e54dde5b9cf /modules/gallery/controllers/admin_theme_options.php | |
| parent | 81011785aa8bbaad6dcfe5bb44a247cad778ed75 (diff) | |
#2021 - Cleanup thumb_dirty and resize_dirty instances.
- g2_import: changed "false" assignment to "0" assignment for consistency.
- admin_theme_options: removed unused variables (they're called/used nowhere else).
- graphics: removed stanza that clears thumb_dirty and resize_dirty and returns
if we have no ops. This has no effect on Gallery currently (for one,
graphics::generate doesn't normally get called on an item with no dirty flags),
but can inconsistently set resize_dirty of albums and movies to 0 where it's
otherwise left at 1. Going forward, it may be useful to be consistent here.
- gallery_installer: added v57 stanza to correct any resize_dirty flags of
movies/albums that were previously reset to 0.
- module.info, install.sql: update to v57
Diffstat (limited to 'modules/gallery/controllers/admin_theme_options.php')
| -rw-r--r-- | modules/gallery/controllers/admin_theme_options.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/gallery/controllers/admin_theme_options.php b/modules/gallery/controllers/admin_theme_options.php index aead8bae..38d2b0a8 100644 --- a/modules/gallery/controllers/admin_theme_options.php +++ b/modules/gallery/controllers/admin_theme_options.php @@ -34,7 +34,6 @@ class Admin_Theme_Options_Controller extends Admin_Controller { module::set_var("gallery", "page_size", $form->edit_theme->page_size->value); $thumb_size = $form->edit_theme->thumb_size->value; - $thumb_dirty = false; if (module::get_var("gallery", "thumb_size") != $thumb_size) { graphics::remove_rule("gallery", "thumb", "gallery_graphics::resize"); graphics::add_rule( @@ -45,7 +44,6 @@ class Admin_Theme_Options_Controller extends Admin_Controller { } $resize_size = $form->edit_theme->resize_size->value; - $resize_dirty = false; if (module::get_var("gallery", "resize_size") != $resize_size) { graphics::remove_rule("gallery", "resize", "gallery_graphics::resize"); graphics::add_rule( |
