X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=thumb.php;h=89cc834355a061c872af677bc900f7050e0b3908;hb=47df31709d3f32e750f8cbab9dd16ac9ff0c81ef;hp=c0042c2c952cc06af717949906dd984b976d141e;hpb=a3c8d3d9fbdc767fcc1da10123dd60e0eeed8369;p=lhc%2Fweb%2Fwiklou.git diff --git a/thumb.php b/thumb.php index c0042c2c95..89cc834355 100644 --- a/thumb.php +++ b/thumb.php @@ -118,7 +118,7 @@ function wfStreamThumb( array $params ) { } if ( isset( $params['width'] ) && substr( $params['width'], -2 ) == 'px' ) { // strip the px (pixel) suffix, if found - $params['width'] = substr( $width, 0, strlen( $width ) - 2 ); + $params['width'] = substr( $params['width'], 0, -2 ); } if ( isset( $params['p'] ) ) { $params['page'] = $params['p'];