Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
39 | public function removeLogo() |
||
40 | { |
||
41 | $item = $this->getModelFromRequest(); |
||
42 | |||
43 | if ($item->removeLogo($_REQUEST)) { |
||
44 | $response['message'] = 'Logo sters'; |
||
45 | } else { |
||
46 | $response['message'] = 'Logo-ul convertit la default'; |
||
47 | } |
||
48 | |||
49 | $image = $item->getLogo($_REQUEST['type']); |
||
50 | $response['type'] = 'success'; |
||
51 | $response['url'] = $image->getUrl(); |
||
52 | $response['path'] = $image->getPath(); |
||
53 | $this->setResponseValues($response); |
||
54 | } |
||
56 |