*** empty log message ***
authorMichael Stucki <michael.stucki@typo3.org>
Sat, 2 Jul 2005 17:42:31 +0000 (17:42 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Sat, 2 Jul 2005 17:42:31 +0000 (17:42 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@774 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_div.php
t3lib/class.t3lib_stdgraphic.php
t3lib/class.t3lib_timetrack.php

index 32ce301..bf5cf5f 100755 (executable)
@@ -1192,8 +1192,8 @@ class t3lib_div {
         * Please note that the order of parameters is reverse compared to the php4-function in_array()!!!
         * Usage: 3
         *
-        * @param       array           $in_array               one-dimensional array of items
-        * @param       string          $item   item to check for
+        * @param       array           one-dimensional array of items
+        * @param       string          item to check for
         * @return      boolean         true if $item is in the one-dimensional array $in_array
         * @internal
         */
index 2cccbad..3a9118f 100644 (file)
@@ -2074,7 +2074,7 @@ class t3lib_stdGraphic    {
                                if (@file_exists($output))      {
                                        $info[3] = $output;
                                        $info[2] = $newExt;
-                                       if ($params)    {       // params could realisticly change som imagedata!
+                                       if ($params)    {       // params could realisticly change some imagedata!
                                                $info=$this->getImageDimensions($info[3]);
                                        }
                                        if ($info[2]==$this->gifExtension && !$this->dontCompress)      {
@@ -2373,7 +2373,7 @@ class t3lib_stdGraphic    {
        function imageMagickExec($input,$output,$params)        {
                if (!$this->NO_IMAGE_MAGICK)    {
                        $cmd = t3lib_div::imageMagickCommand('convert', $params.' '.$this->wrapFileName($input).' '.$this->wrapFileName($output));
-                       $this->IM_commands[] = Array ($output,$cmd);
+                       $this->IM_commands[] = array($output,$cmd);
 
                        $ret = exec($cmd);
                        t3lib_div::fixPermissions($this->wrapFileName($output));        // Change the permissions of the file
index d211384..49fab7f 100755 (executable)
@@ -290,13 +290,12 @@ class t3lib_timeTrack {
         */
        function printTSlog()   {
                        // Calculate times and keys for the tsStackLog
-               reset($this->tsStackLog);
                $preEndtime=0;
-               while(list($uniqueId,$data)=each($this->tsStackLog))    {
+               foreach($this->tsStackLog as $uniqueId=>$data)  {
                        $this->tsStackLog[$uniqueId]['endtime'] = $this->convertMicrotime($this->tsStackLog[$uniqueId]['endtime'])-$this->starttime;
                        $this->tsStackLog[$uniqueId]['starttime'] = $this->convertMicrotime($this->tsStackLog[$uniqueId]['starttime'])-$this->starttime;
                        $this->tsStackLog[$uniqueId]['deltatime'] = $this->tsStackLog[$uniqueId]['endtime']-$this->tsStackLog[$uniqueId]['starttime'];
-                       $this->tsStackLog[$uniqueId]['key'] = implode(end($data['tsStack']),$this->tsStackLog[$uniqueId]['stackPointer']?'.':'/');
+                       $this->tsStackLog[$uniqueId]['key'] = implode($this->tsStackLog[$uniqueId]['stackPointer']?'.':'/', end($data['tsStack']));
                        $preEndtime = $this->tsStackLog[$uniqueId]['endtime'];
                }