| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 79 | protected function set_user_dir() |
||
| 80 | { |
||
| 81 | // if user is not founder, they must have a directory |
||
| 82 | $this->user_dir = ($this->user->data['user_type'] != USER_FOUNDER) ? 'users/' . $this->user->data['username'] . '/' : ''; |
||
| 83 | |||
| 84 | $destination = $this->phpbb_root_path . $this->upload_dir . $this->user_dir; |
||
| 85 | |||
| 86 | if (!is_dir($destination)) |
||
| 87 | { |
||
| 88 | $this->filesystem->mkdir($destination, 0755); |
||
| 89 | } |
||
| 92 |