From: Neil Kandalgaonkar Date: Wed, 24 Nov 2010 18:59:16 +0000 (+0000) Subject: generate debug messages, trying to fix a problem on testwiki X-Git-Tag: 1.31.0-rc.0~33745 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=a23ff5ae5a53180cd751584e14756b19820f2255;p=lhc%2Fweb%2Fwiklou.git generate debug messages, trying to fix a problem on testwiki --- diff --git a/includes/upload/UploadStash.php b/includes/upload/UploadStash.php index 5a66144ca6..8184e932a9 100644 --- a/includes/upload/UploadStash.php +++ b/includes/upload/UploadStash.php @@ -103,6 +103,7 @@ class UploadStash { */ public function stashFile( $path, $data = array(), $key = null ) { if ( ! file_exists( $path ) ) { + wfDebug( "UploadStash: tried to stash file at '$path', but it doesn't exist" ); throw new UploadStashBadPathException( "path doesn't exist" ); } $fileProps = File::getPropsFromPath( $path ); @@ -372,6 +373,8 @@ class UploadStashFile extends UnregisteredLocalFile { // returns a ThumbnailImage object containing the url and path. Note. NOT A FILE OBJECT. $thumb = parent::transform( $params, $flags ); + wfDebug( "UploadStash: generating thumbnail\n" ); + wfDebug( print_r( $thumb, 1 ) ); $key = $this->thumbName($params); // remove extension, so it's stored in the session under '120px-123456'