modif in image constructor

This commit is contained in:
Yoggzo 2016-03-09 14:31:14 +01:00
parent 89f2c4ac8c
commit 78a4f8574f

View file

@ -43,18 +43,8 @@ class image implements Core{
if(!isset($app)){ if(!isset($app)){
$this->app->setOutput("Error", "Incorrect parameter"); $this->app->setOutput("Error", "Incorrect parameter");
} }
try{ $this->app = $app;
$this->app = $app; $this->libClass = $app->getLibClass("Image");
$this->libClass = $app->getLibClass("Image");
}catch(BadResponseError $e){
$this->app->getErrorInstance()->BadResponseHandler($e);
}catch(UserInputError $e){
$this->app->getErrorInstance->UserInputHandler($e);
}catch(BaseError $e){
$this->app->getErrorInstance->BaseErrorHandler($e);
}catch(NotImplementedError $e){
$this->app->getErrorInstance->NotImplementedHandler($e);
}
} }