--- WebVideoTranscodeJob_Old.php 2014-03-29 12:04:10.000000000 +0000 +++ WebVideoTranscodeJob.php 2013-10-21 19:40:51.000000000 +0000 @@ -92,30 +92,13 @@ * @param $error string * */ - // Just take the first and last 750 bytes of the $error string and save them into $short_error string. Use this string now to update the transcode status db. private function setTranscodeError( $transcodeKey, $error ){ $dbw = wfGetDB( DB_MASTER ); - $short_error='a'; - if(strlen($error)>1500) - { - for($i=0;$i<750;$i++) - { - $short_error[$i] = $error[$i]; - } - for($i=751, $j=strlen($error)-750; $i<=1500, $j<=strlen($error); $i++, $j++) - { - $short_error[$i] = $error[$j]; - } - } - else - { - $short_error=$error; - } $dbw->update( 'transcode', array( 'transcode_time_error' => $dbw->timestamp(), - 'transcode_error' => $short_error + 'transcode_error' => $error ), array( 'transcode_image_name' => $this->getFile()->getName(), @@ -124,7 +107,6 @@ __METHOD__, array( 'LIMIT' => 1 ) ); -// echo $error; $this->setLastError( $error ); }