mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-21 07:11:24 +02:00
major rearrange to prepare to move to PHP 5.4
This commit is contained in:
@@ -244,7 +244,7 @@ $pwd = get(array('password', 'pwd'), null);
|
||||
// Check if passwords match, if configured to use passwords
|
||||
$passwordMatch = null;
|
||||
if ($pwd) {
|
||||
switch($pwdType) {
|
||||
switch ($pwdType) {
|
||||
case 'md5':
|
||||
$passwordMatch = ($pwdConfig === md5($pwd));
|
||||
break;
|
||||
@@ -996,8 +996,8 @@ if ($srgb || $srgbDefault) {
|
||||
}
|
||||
|
||||
$filename = $img->convert2sRGBColorSpace(
|
||||
$srcImage,
|
||||
$imagePath,
|
||||
$srcImage,
|
||||
$imagePath,
|
||||
$srgbDir,
|
||||
$srgbColorProfile,
|
||||
$useCache
|
||||
|
Reference in New Issue
Block a user