From a23ff5ae5a53180cd751584e14756b19820f2255 Mon Sep 17 00:00:00 2001 From: Neil Kandalgaonkar Date: Wed, 24 Nov 2010 18:59:16 +0000 Subject: [PATCH] generate debug messages, trying to fix a problem on testwiki --- includes/upload/UploadStash.php | 3 +++ 1 file changed, 3 insertions(+) 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' -- 2.20.1