| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function before() |
||
| 40 | { |
||
| 41 | parent::before(); |
||
| 42 | $configs = AppRecord::getConfigs('app', 'Content'); |
||
| 43 | // prevent null-type config data |
||
| 44 | if ((int)$configs['gallerySize'] > 0) { |
||
| 45 | $this->maxSize = (int)$configs['gallerySize'] * 1024; |
||
| 46 | } |
||
| 47 | |||
| 48 | if ((int)$configs['galleryResize'] > 0) { |
||
| 49 | $this->maxResize = (int)$configs['galleryResize']; |
||
| 50 | } |
||
| 53 |