X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=thumb.php;h=3d8612d9726988ec17bbb21029b38f2e581905c6;hp=efaa65bc6234e1d01c0f1b95d22e42b0013cb8b9;hb=cb9bc6cbc7aba32b7e85837fbf5859cd88e0af15;hpb=c54bcbc5b91d04908892b9c7e5a23393b9c7a3b8 diff --git a/thumb.php b/thumb.php index efaa65bc62..3d8612d972 100644 --- a/thumb.php +++ b/thumb.php @@ -32,7 +32,7 @@ if ( defined( 'THUMB_HANDLER' ) ) { wfThumbHandle404(); } else { // Called directly, use $_GET params - wfThumbHandleRequest(); + wfStreamThumb( $_GET ); } wfLogProfilingData(); @@ -43,19 +43,6 @@ $factory->shutdown(); //-------------------------------------------------------------------------- -/** - * Handle a thumbnail request via query parameters - * - * @return void - */ -function wfThumbHandleRequest() { - $params = get_magic_quotes_gpc() - ? array_map( 'stripslashes', $_GET ) - : $_GET; - - wfStreamThumb( $params ); // stream the thumbnail -} - /** * Handle a thumbnail request via thumbnail file URL * @@ -553,7 +540,7 @@ function wfExtractThumbRequestInfo( $thumbRel ) { * file handler. * * @param File $file File object for file in question - * @param array $param Array of parameters so far + * @param array $params Array of parameters so far * @return array Parameters array with more parameters */ function wfExtractThumbParams( $file, $params ) {