Fixed bug #10086: Core uses deprecated function t3lib_db->sql()
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_stdgraphic.php
index 4419908..c81b4b9 100644 (file)
@@ -2203,7 +2203,7 @@ class t3lib_stdGraphic    {
                                if ($this->dontCheckForExistingTempFile || !$this->file_exists_typo3temp_file($output, $imagefile))     {
                                        $this->imageMagickExec($imagefile.$frame, $output, $command);
                                }
                                if ($this->dontCheckForExistingTempFile || !$this->file_exists_typo3temp_file($output, $imagefile))     {
                                        $this->imageMagickExec($imagefile.$frame, $output, $command);
                                }
-                               if (@file_exists($output))      {
+                               if (file_exists($output))       {
                                        $info[3] = $output;
                                        $info[2] = $newExt;
                                        if ($params)    {       // params could realisticly change some imagedata!
                                        $info[3] = $output;
                                        $info[2] = $newExt;
                                        if ($params)    {       // params could realisticly change some imagedata!
@@ -2227,7 +2227,7 @@ class t3lib_stdGraphic    {
         */
        function getImageDimensions($imageFile) {
                ereg('([^\.]*)$',$imageFile,$reg);
         */
        function getImageDimensions($imageFile) {
                ereg('([^\.]*)$',$imageFile,$reg);
-               if (@file_exists($imageFile) && t3lib_div::inList($this->imageFileExt,strtolower($reg[0])))     {
+               if (file_exists($imageFile) && t3lib_div::inList($this->imageFileExt,strtolower($reg[0])))      {
                        if ($returnArr = $this->getCachedImageDimensions($imageFile))   {
                                return $returnArr;
                        } else {
                        if ($returnArr = $this->getCachedImageDimensions($imageFile))   {
                                return $returnArr;
                        } else {
@@ -2419,7 +2419,7 @@ class t3lib_stdGraphic    {
         */
        function file_exists_typo3temp_file($output,$orig='')   {
                if ($this->enable_typo3temp_db_tracking)        {
         */
        function file_exists_typo3temp_file($output,$orig='')   {
                if ($this->enable_typo3temp_db_tracking)        {
-                       if (@file_exists($output))      {       // If file exists, then we return immediately
+                       if (file_exists($output))       {       // If file exists, then we return immediately
                                return 1;
                        } else {        // If not, we look up in the cache_typo3temp_log table to see if there is a image being rendered right now.
                                $md5Hash=md5($output);
                                return 1;
                        } else {        // If not, we look up in the cache_typo3temp_log table to see if there is a image being rendered right now.
                                $md5Hash=md5($output);
@@ -2444,7 +2444,7 @@ class t3lib_stdGraphic    {
                                }
                        }
                } else {
                                }
                        }
                } else {
-                       return @file_exists($output);
+                       return file_exists($output);
                }
        }
 
                }
        }
 
@@ -2789,7 +2789,7 @@ class t3lib_stdGraphic    {
         * @param       string          The filename to write to
         * @return      mixed           The output of either imageGif, imagePng or imageJpeg based on the filename to write
         * @see imageWrite()
         * @param       string          The filename to write to
         * @return      mixed           The output of either imageGif, imagePng or imageJpeg based on the filename to write
         * @see imageWrite()
-        * @deprecated
+        * @deprecated since TYPO3 4.0
         */
        function imageGif($destImg, $theImage)  {
                return $this->imageWrite($destImg, $theImage);
         */
        function imageGif($destImg, $theImage)  {
                return $this->imageWrite($destImg, $theImage);
@@ -2801,7 +2801,7 @@ class t3lib_stdGraphic    {
         *
         * @param       string          Image filename
         * @return      pointer         Image Resource pointer
         *
         * @param       string          Image filename
         * @return      pointer         Image Resource pointer
-        * @deprecated
+        * @deprecated since TYPO3 4.0
         */
        function imageCreateFromGif($sourceImg) {
                return $this->imageCreateFromFile($sourceImg);
         */
        function imageCreateFromGif($sourceImg) {
                return $this->imageCreateFromFile($sourceImg);
@@ -2937,4 +2937,5 @@ class t3lib_stdGraphic    {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_stdgraphic.php'])       {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_stdgraphic.php']);
 }
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_stdgraphic.php'])       {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_stdgraphic.php']);
 }
-?>
+
+?>
\ No newline at end of file