@@ -77,9 +77,9 @@ discard block |
||
77 | 77 | $this->ptemplate->assign_vars(array( |
78 | 78 | 'S_SHOW_HIDE_ME' => ($settings['show_hide_me']) ? true : false, |
79 | 79 | 'S_AUTOLOGIN_ENABLED' => ($settings['allow_autologin']) ? true : false, |
80 | - 'S_LOGIN_ACTION' => append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, 'mode=login'), |
|
81 | - 'U_REGISTER' => append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, 'mode=register'), |
|
82 | - 'U_SEND_PASSWORD' => append_sid("{$this->phpbb_root_path}ucp." . $this->php_ext, 'mode=sendpassword'), |
|
80 | + 'S_LOGIN_ACTION' => append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, 'mode=login'), |
|
81 | + 'U_REGISTER' => append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, 'mode=register'), |
|
82 | + 'U_SEND_PASSWORD' => append_sid("{$this->phpbb_root_path}ucp.".$this->php_ext, 'mode=sendpassword'), |
|
83 | 83 | 'U_REDIRECT' => reapply_sid(ltrim(rtrim(build_url(array('edit_mode')), '?'), './../')) |
84 | 84 | )); |
85 | 85 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | private function hide_quicklogin() |
105 | 105 | { |
106 | 106 | $current_page = $this->user->page['page_name']; |
107 | - if ($current_page === 'index.' . $this->php_ext) |
|
107 | + if ($current_page === 'index.'.$this->php_ext) |
|
108 | 108 | { |
109 | 109 | $this->template->assign_var('S_USER_LOGGED_IN', true); |
110 | 110 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $content = $this->request->variable('content', '', true); |
86 | 86 | $cblocks = $this->get_custom_blocks(); |
87 | 87 | |
88 | - $sql_data = $this->get_default_fields($block_id); |
|
88 | + $sql_data = $this->get_default_fields($block_id); |
|
89 | 89 | $sql_data['block_content'] = $content; |
90 | 90 | |
91 | 91 | generate_text_for_storage($sql_data['block_content'], $sql_data['bbcode_uid'], $sql_data['bbcode_bitfield'], $sql_data['bbcode_options'], true, true, true); |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | { |
150 | 150 | if (!$block_exists) |
151 | 151 | { |
152 | - $sql = 'INSERT INTO ' . $this->cblocks_table . ' ' . $this->db->sql_build_array('INSERT', $sql_data); |
|
152 | + $sql = 'INSERT INTO '.$this->cblocks_table.' '.$this->db->sql_build_array('INSERT', $sql_data); |
|
153 | 153 | } |
154 | 154 | else |
155 | 155 | { |
156 | - $sql = 'UPDATE ' . $this->cblocks_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_data) . ' WHERE block_id = ' . (int) $sql_data['block_id']; |
|
156 | + $sql = 'UPDATE '.$this->cblocks_table.' SET '.$this->db->sql_build_array('UPDATE', $sql_data).' WHERE block_id = '.(int) $sql_data['block_id']; |
|
157 | 157 | } |
158 | 158 | $this->db->sql_query($sql); |
159 | 159 | $this->cache->destroy('sm_cblocks'); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | $block_is_active = $status; |
175 | 175 | $status = ($content && $status) ? true : false; |
176 | - $content = '<div id="block-editor-' . $cblock['block_id'] . '" class="editable editable-block" data-service="blitze.sitemaker.block.custom" data-method="edit" data-raw="' . $cblock['block_content'] . '" data-active="' . $block_is_active . '">' . $content . '</div>'; |
|
176 | + $content = '<div id="block-editor-'.$cblock['block_id'].'" class="editable editable-block" data-service="blitze.sitemaker.block.custom" data-method="edit" data-raw="'.$cblock['block_content'].'" data-active="'.$block_is_active.'">'.$content.'</div>'; |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 |