summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/helpers/graphics.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php
index 708b7bce..c695abb2 100644
--- a/core/helpers/graphics.php
+++ b/core/helpers/graphics.php
@@ -122,4 +122,12 @@ class graphics_Core {
->resize($width, $height, $master)
->save($output_file);
}
+
+ /**
+ * Mark all thumbnails and resizes as dirty. They will have to be rebuilt.
+ *
+ */
+ public static function mark_all_dirty() {
+ Database::instance()->query("UPDATE `items` SET `thumb_dirty` = 1, `resize_dirty` = 1");
+ }
}