modifs on Image constructor

This commit is contained in:
Yoggzo 2016-03-09 14:35:08 +01:00
parent 3b569b6d00
commit 73c33feded

View file

@ -43,18 +43,8 @@ class image implements Core{
if(!isset($app)){
$this->app->setOutput("Error", "Incorrect parameter");
}
try{
$this->app = $app;
$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);
}
$this->app = $app;
$this->libClass = $app->getLibClass("Image");
}