summaryrefslogtreecommitdiff
path: root/modules/g2_import
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-02-27 07:11:52 +0100
committershadlaws <shad@shadlaws.com>2013-02-27 07:11:52 +0100
commit891a24151ee7dd197c623b4f482f260009d67096 (patch)
treee8d5d9b68109faaa669e4da5e6db7e54dde5b9cf /modules/g2_import
parent81011785aa8bbaad6dcfe5bb44a247cad778ed75 (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/g2_import')
-rw-r--r--modules/g2_import/helpers/g2_import.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index 70aac747..b155a88a 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -1055,7 +1055,7 @@ class g2_import_Core {
if (@copy(g2($derivative->fetchPath()), $item->thumb_path())) {
$item->thumb_height = $derivative->getHeight();
$item->thumb_width = $derivative->getWidth();
- $item->thumb_dirty = false;
+ $item->thumb_dirty = 0;
}
}
@@ -1066,7 +1066,7 @@ class g2_import_Core {
if (@copy(g2($derivative->fetchPath()), $item->resize_path())) {
$item->resize_height = $derivative->getHeight();
$item->resize_width = $derivative->getWidth();
- $item->resize_dirty = false;
+ $item->resize_dirty = 0;
}
}
}