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