[BUGFIX] Reindex images also if they are replaced by an older image 95/40495/2
authorDaniel Maier <dani-maier@gmx.de>
Sat, 20 Jun 2015 17:59:47 +0000 (19:59 +0200)
committerBenjamin Mack <benni@typo3.org>
Mon, 22 Jun 2015 10:47:31 +0000 (12:47 +0200)
Now the FAL Storage Indexer also reindexes images that have been replaced
by another image with older mtime than the currently indexed one.

Resolves: #67573
Releases: master
Change-Id: Ib2ce9f56434bfdd7d55f1f20ade59a839b560f15
Reviewed-on: http://review.typo3.org/40495
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Classes/Resource/Index/Indexer.php

index 4f622a5..b52b534 100644 (file)
@@ -156,7 +156,7 @@ class Indexer {
                        if ($indexRecord !== FALSE) {
                                $this->identifiedFileUids[] = $indexRecord['uid'];
 
-                               if ($indexRecord['modification_date'] < $modificationTime['mtime'] || $indexRecord['missing']) {
+                               if ($indexRecord['modification_date'] !== $modificationTime['mtime'] || $indexRecord['missing']) {
                                        $this->filesToUpdate[$fileIdentifier] = $indexRecord;
                                }
                        } else {