On Thu, Mar 8, 2012 at 3:51 PM, Roan Kattouw <[email protected]> wrote: > I don't know why this happens, but you really don't need internal API > requests to get thumbnail URLs. This is much simpler: > > $file = wfFindFile( 'Foobar.jpg' ); > $thumb = $file->transform( array( 'width' => 200 ) ); > if ( $mto && !$mto->isError() ) { $url = $mto->getURL(); } else { /* > Handle error */ } >
s/$thumb/$mto/? -Chad _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
