* Implemented #0000508: Minor performance improvement in an if clause in t3lib_stdgra...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Thu, 18 Nov 2004 14:31:57 +0000 (14:31 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Thu, 18 Nov 2004 14:31:57 +0000 (14:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@509 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_stdgraphic.php

index 25d76c7..25632e0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-18  Ingmar Schlecht  <ingmar@typo3.org>
+
+       * Implemented #0000508: Minor performance improvement in an if clause in t3lib_stdgraphic, thanks to Volker Graubaum.
+
 2004-11-17  Kasper Skårhøj,,,  <kasper@typo3.com>
 
        * Converted locallang*.php to locallang*.xml in new system extensions.
index 2494b9b..ceee62c 100644 (file)
@@ -2067,7 +2067,7 @@ class t3lib_stdGraphic    {
                                        // Register temporary filename:
                                $GLOBALS['TEMP_IMAGES_ON_PAGE'][] = $output;
 
-                               if (!$this->file_exists_typo3temp_file($output,$imagefile) || $this->dontCheckForExistingTempFile)      {
+                               if ($this->dontCheckForExistingTempFile || !$this->file_exists_typo3temp_file($output,$imagefile))      {
                                        $this->imageMagickExec($imagefile.$frame,$output,$command);
                                }
                                if (@file_exists($output))      {