"soundasleep/html2text": "^0.5.0",
"laminas/laminas-dependency-plugin": "^1.0",
"aneek/slim-event-dispatcher": "^1.0",
- "slim/flash": "^0.4.0"
+ "slim/flash": "^0.4.0",
+ "league/event": "^2.1",
+ "smarty/smarty": "~3.1",
+ "psr/http-message": "^1.0",
+ "psr/container": "^1.0"
},
"require-dev": {
"atoum/atoum": "dev-master",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ab4385194ba68db560723d55c70415d7",
+ "content-hash": "a9c3944dc4b30ba1cc8f9303cc61699b",
"packages": [
{
"name": "akrabat/rka-slim-session-middleware",
namespace Galette\Core;
use Analog\Analog;
-use Laminas\Db\Adapter\Exception as AdapterException;
use Galette\Entity\Adherent;
/**
namespace Galette\Core;
-use Laminas\Db\Adapter\Exception as AdapterException;
use Galette\Repository\Groups;
use Galette\Repository\Members;
use Galette\Entity\Adherent;
$this->logUser($row);
return true;
}
- } catch (AdapterException $e) {
- Analog::log(
- 'An error occurred: ' . $e->getChainedException()->getMessage(),
- Analog::WARNING
- );
- Analog::log($e->getTrace(), Analog::ERROR);
- return false;
} catch (\Exception $e) {
Analog::log(
'An error occurred: ' . $e->getMessage(),
$this->logUser($row);
return true;
}
- } catch (AdapterException $e) {
- Analog::log(
- 'An error occurred: ' . $e->getChainedException()->getMessage(),
- Analog::WARNING
- );
- Analog::log($e->getTrace(), Analog::ERROR);
- return false;
} catch (\Exception $e) {
Analog::log(
'An error occurred: ' . $e->getMessage(),
$thumb = imagecreatetruecolor($w, $h);
switch ($ext) {
case 'jpg':
- $image = ImageCreateFromJpeg($source);
+ $image = imagecreatefromjpeg($source);
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $w, $h, $cur_width, $cur_height);
imagejpeg($thumb, $dest);
break;
case 'png':
- $image = ImageCreateFromPng($source);
+ $image = imagecreatefrompng($source);
// Turn off alpha blending and set alpha flag. That prevent alpha
// transparency to be saved as an arbitrary color (black in my tests)
imagealphablending($thumb, false);
imagepng($thumb, $dest);
break;
case 'gif':
- $image = ImageCreateFromGif($source);
+ $image = imagecreatefromgif($source);
imagecopyresampled($thumb, $image, 0, 0, 0, 0, $w, $h, $cur_width, $cur_height);
imagegif($thumb, $dest);
break;
*/
protected function parsegif($file)
{
- $a = GetImageSize($file);
+ $a = getimagesize($file);
if (empty($a)) {
$this->Error(_T("Missing or incorrect image file ") . $file);
}