@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | public function load_permission_language(\phpbb\event\data $event) |
69 | 69 | { |
70 | 70 | $permissions = $event['permissions']; |
71 | - $permissions['a_sm_settings'] = array('lang' => 'ACL_A_SM_SETTINGS', 'cat' => 'misc'); |
|
72 | - $permissions['a_sm_manage_blocks'] = array('lang' => 'ACL_A_SM_MANAGE_BLOCKS', 'cat' => 'misc'); |
|
73 | - $permissions['a_sm_manage_menus'] = array('lang' => 'ACL_A_SM_MANAGE_MENUS', 'cat' => 'misc'); |
|
71 | + $permissions['a_sm_settings'] = array('lang' => 'ACL_A_SM_SETTINGS', 'cat' => 'misc'); |
|
72 | + $permissions['a_sm_manage_blocks'] = array('lang' => 'ACL_A_SM_MANAGE_BLOCKS', 'cat' => 'misc'); |
|
73 | + $permissions['a_sm_manage_menus'] = array('lang' => 'ACL_A_SM_MANAGE_MENUS', 'cat' => 'misc'); |
|
74 | 74 | $permissions['a_sm_filemanager'] = array('lang' => 'ACL_A_SM_FILEMANAGER', 'cat' => 'misc'); |
75 | 75 | $permissions['u_sm_filemanager'] = array('lang' => 'ACL_U_SM_FILEMANAGER', 'cat' => 'misc'); |
76 | 76 | $event['permissions'] = $permissions; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function add_viewonline_location(\phpbb\event\data $event) |
83 | 83 | { |
84 | - if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/forum') === 0) |
|
84 | + if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/forum') === 0) |
|
85 | 85 | { |
86 | 86 | $event['location'] = $this->translator->lang('FORUM_INDEX'); |
87 | 87 | $event['location_url'] = $this->phpbb_container->get('controller.helper')->route('blitze_sitemaker_forum'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function get_access_key() |
76 | 76 | { |
77 | - return sha1($this->user->data['user_form_salt'] . 'filemanager'); |
|
77 | + return sha1($this->user->data['user_form_salt'].'filemanager'); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function get_upload_destination() |
100 | 100 | { |
101 | - return $this->upload_dir . $this->get_user_dir(); |
|
101 | + return $this->upload_dir.$this->get_user_dir(); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -120,9 +120,9 @@ discard block |
||
120 | 120 | protected function set_user_dir() |
121 | 121 | { |
122 | 122 | // if user does not have root access, they must have a directory |
123 | - $this->user_dir = (!$this->auth->acl_get('a_sm_filemanager')) ? 'users/' . $this->user->data['username'] . '/' : ''; |
|
123 | + $this->user_dir = (!$this->auth->acl_get('a_sm_filemanager')) ? 'users/'.$this->user->data['username'].'/' : ''; |
|
124 | 124 | |
125 | - $destination = $this->phpbb_root_path . $this->upload_dir . $this->user_dir; |
|
125 | + $destination = $this->phpbb_root_path.$this->upload_dir.$this->user_dir; |
|
126 | 126 | |
127 | 127 | if (!is_dir($destination)) |
128 | 128 | { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | '@blitze_sitemaker/assets/icons/picker.min.js', |
51 | 51 | ), |
52 | 52 | 'css' => array_filter(array( |
53 | - defined('IN_ADMIN') ? $this->util->get_web_path() . 'assets/css/font-awesome.min.css' : '', |
|
53 | + defined('IN_ADMIN') ? $this->util->get_web_path().'assets/css/font-awesome.min.css' : '', |
|
54 | 54 | '@blitze_sitemaker/vendor/jquery-ui/themes/smoothness/jquery-ui.min.css', |
55 | 55 | '@blitze_sitemaker/assets/icons/picker.min.css', |
56 | 56 | )) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | else |
91 | 91 | { |
92 | - $json_data['location'] = $user_dir . $file->get('realname'); |
|
92 | + $json_data['location'] = $user_dir.$file->get('realname'); |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param \phpbb\files\filespec $file |
98 | 98 | * @return void |
99 | 99 | */ |
100 | - protected function set_filename(\phpbb\files\filespec &$file) |
|
100 | + protected function set_filename(\phpbb\files\filespec & $file) |
|
101 | 101 | { |
102 | 102 | $mode = 'real'; |
103 | 103 | $prefix = ''; |