@@ -72,8 +72,7 @@ discard block |
||
| 72 | 72 | 'title' => '', |
| 73 | 73 | 'content' => '', |
| 74 | 74 | ); |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | { |
| 78 | 77 | $this->fetch_new($bdata['settings']); |
| 79 | 78 | |
@@ -117,8 +116,7 @@ discard block |
||
| 117 | 116 | { |
| 118 | 117 | $sorting = 't.topic_last_post_time'; |
| 119 | 118 | $sql_array = $this->get_topics_sql(); |
| 120 | - } |
|
| 121 | - else |
|
| 119 | + } else |
|
| 122 | 120 | { |
| 123 | 121 | $sorting = 'p.post_time'; |
| 124 | 122 | $sql_array = $this->get_posts_sql(); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | $this->ptemplate->assign_block_vars('topicrow', array( |
| 96 | 96 | 'TOPIC_TITLE' => censor_text($row['topic_title']), |
| 97 | - 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "f=$forum_id&t=$topic_id"), |
|
| 97 | + 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path.'viewtopic.'.$this->php_ext, "f=$forum_id&t=$topic_id"), |
|
| 98 | 98 | )); |
| 99 | 99 | unset($topic_data[$i]); |
| 100 | 100 | } |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | return array( |
| 137 | 137 | 'WHERE' => array( |
| 138 | - 't.topic_last_post_time > ' . (int) $this->user->data['user_lastvisit'], |
|
| 138 | + 't.topic_last_post_time > '.(int) $this->user->data['user_lastvisit'], |
|
| 139 | 139 | 't.topic_moved_id = 0', |
| 140 | 140 | ), |
| 141 | 141 | ); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | POSTS_TABLE => 'p', |
| 152 | 152 | ), |
| 153 | 153 | 'WHERE' => array( |
| 154 | - 't.topic_id = p.topic_id AND p.post_time > ' . $this->user->data['user_lastvisit'], |
|
| 154 | + 't.topic_id = p.topic_id AND p.post_time > '.$this->user->data['user_lastvisit'], |
|
| 155 | 155 | ), |
| 156 | 156 | ); |
| 157 | 157 | } |
@@ -303,8 +303,7 @@ |
||
| 303 | 303 | $cur_voted_id[] = $row['poll_option_id']; |
| 304 | 304 | } |
| 305 | 305 | $this->db->sql_freeresult($result); |
| 306 | - } |
|
| 307 | - else |
|
| 306 | + } else |
|
| 308 | 307 | { |
| 309 | 308 | // Cookie based guest tracking ... I don't like this but hum ho |
| 310 | 309 | // it's oft requested. This relies on "nice" users who don't feel |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * @param array $topic_data |
| 64 | 64 | * @param \phpbb\template\twig\twig $template |
| 65 | 65 | */ |
| 66 | - public function build(array $topic_data, \phpbb\template\twig\twig &$template) |
|
| 66 | + public function build(array $topic_data, \phpbb\template\twig\twig & $template) |
|
| 67 | 67 | { |
| 68 | 68 | $this->user->add_lang('viewtopic'); |
| 69 | 69 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | 'S_POLL_ACTION' => $viewtopic_url, |
| 96 | 96 | 'S_FORM_TOKEN' => $this->sitemaker->get_form_key('posting'), |
| 97 | 97 | |
| 98 | - 'U_VIEW_RESULTS' => $viewtopic_url . '&view=viewpoll', |
|
| 98 | + 'U_VIEW_RESULTS' => $viewtopic_url.'&view=viewpoll', |
|
| 99 | 99 | )); |
| 100 | 100 | } |
| 101 | 101 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $post_id = (int) $topic_data['topic_first_post_id']; |
| 128 | 128 | |
| 129 | 129 | $sql = 'SELECT o.*, p.bbcode_bitfield, p.bbcode_uid |
| 130 | - FROM ' . POLL_OPTIONS_TABLE . ' o, ' . POSTS_TABLE . " p |
|
| 130 | + FROM ' . POLL_OPTIONS_TABLE.' o, '.POSTS_TABLE." p |
|
| 131 | 131 | WHERE o.topic_id = $topic_id |
| 132 | 132 | AND p.post_id = $post_id |
| 133 | 133 | AND p.topic_id = o.topic_id |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * @param int $poll_most |
| 173 | 173 | * @param \phpbb\template\twig\twig $template |
| 174 | 174 | */ |
| 175 | - private function _build_poll_options(array $cur_voted_id, array $poll_info, $poll_total, $poll_most, \phpbb\template\twig\twig &$template) |
|
| 175 | + private function _build_poll_options(array $cur_voted_id, array $poll_info, $poll_total, $poll_most, \phpbb\template\twig\twig & $template) |
|
| 176 | 176 | { |
| 177 | 177 | foreach ($poll_info as $poll_option) |
| 178 | 178 | { |
@@ -203,8 +203,8 @@ discard block |
||
| 203 | 203 | if ($this->user->data['is_registered']) |
| 204 | 204 | { |
| 205 | 205 | $sql = 'SELECT poll_option_id |
| 206 | - FROM ' . POLL_VOTES_TABLE . ' |
|
| 207 | - WHERE topic_id = ' . (int) $topic_id . ' |
|
| 206 | + FROM ' . POLL_VOTES_TABLE.' |
|
| 207 | + WHERE topic_id = ' . (int) $topic_id.' |
|
| 208 | 208 | AND vote_user_id = ' . (int) $this->user->data['user_id']; |
| 209 | 209 | $result = $this->db->sql_query($sql); |
| 210 | 210 | |
@@ -219,9 +219,9 @@ discard block |
||
| 219 | 219 | // Cookie based guest tracking ... I don't like this but hum ho |
| 220 | 220 | // it's oft requested. This relies on "nice" users who don't feel |
| 221 | 221 | // the need to delete cookies to mess with results. |
| 222 | - if ($this->request->is_set($this->config['cookie_name'] . '_poll_' . $topic_id, \phpbb\request\request_interface::COOKIE)) |
|
| 222 | + if ($this->request->is_set($this->config['cookie_name'].'_poll_'.$topic_id, \phpbb\request\request_interface::COOKIE)) |
|
| 223 | 223 | { |
| 224 | - $cur_voted_id = explode(',', $this->request->variable($this->config['cookie_name'] . '_poll_' . $topic_id, '', true, \phpbb\request\request_interface::COOKIE)); |
|
| 224 | + $cur_voted_id = explode(',', $this->request->variable($this->config['cookie_name'].'_poll_'.$topic_id, '', true, \phpbb\request\request_interface::COOKIE)); |
|
| 225 | 225 | $cur_voted_id = array_map('intval', $cur_voted_id); |
| 226 | 226 | } |
| 227 | 227 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | if (!function_exists('make_forum_select')) |
| 23 | 23 | { |
| 24 | - include($phpbb_root_path . 'includes/functions_admin.' . $php_ext); // @codeCoverageIgnore |
|
| 24 | + include($phpbb_root_path.'includes/functions_admin.'.$php_ext); // @codeCoverageIgnore |
|
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $forum_options = array('' => 'ALL'); |
| 42 | 42 | foreach ($forumlist as $row) |
| 43 | 43 | { |
| 44 | - $forum_options[$row['forum_id']] = $row['padding'] . $row['forum_name']; |
|
| 44 | + $forum_options[$row['forum_id']] = $row['padding'].$row['forum_name']; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | return $forum_options; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | if (in_array($topic_type, array(POST_STICKY, POST_ANNOUNCE))) |
| 144 | 144 | { |
| 145 | - $this->store['sql_array']['WHERE'][] = '(t.topic_time_limit > 0 AND (t.topic_time + t.topic_time_limit) < ' . time() . ')'; |
|
| 145 | + $this->store['sql_array']['WHERE'][] = '(t.topic_time_limit > 0 AND (t.topic_time + t.topic_time_limit) < '.time().')'; |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | return $this; |
@@ -160,13 +160,13 @@ discard block |
||
| 160 | 160 | $this->store['sql_array']['SELECT'][] = 'tw.notify_status'; |
| 161 | 161 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
| 162 | 162 | 'FROM' => array(TOPICS_WATCH_TABLE => 'tw'), |
| 163 | - 'ON' => 'tw.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.topic_id = tw.topic_id' |
|
| 163 | + 'ON' => 'tw.user_id = '.(int) $this->user->data['user_id'].' AND t.topic_id = tw.topic_id' |
|
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | 166 | $this->store['sql_array']['SELECT'][] = 'fw.notify_status'; |
| 167 | 167 | $this->store['sql_array']['LEFT JOIN'][] = array( |
| 168 | 168 | 'FROM' => array(FORUMS_WATCH_TABLE => 'fw'), |
| 169 | - 'ON' => '(fw.forum_id = f.forum_id AND fw.user_id = ' . (int) $this->user->data['user_id'] . ')', |
|
| 169 | + 'ON' => '(fw.forum_id = f.forum_id AND fw.user_id = '.(int) $this->user->data['user_id'].')', |
|
| 170 | 170 | ); |
| 171 | 171 | } |
| 172 | 172 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | $this->store['sql_array']['SELECT'][] = 'bm.topic_id as bookmarked'; |
| 186 | 186 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
| 187 | 187 | 'FROM' => array(BOOKMARKS_TABLE => 'bm'), |
| 188 | - 'ON' => 'bm.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.topic_id = bm.topic_id' |
|
| 188 | + 'ON' => 'bm.user_id = '.(int) $this->user->data['user_id'].' AND t.topic_id = bm.topic_id' |
|
| 189 | 189 | ); |
| 190 | 190 | } |
| 191 | 191 | |
@@ -206,12 +206,12 @@ discard block |
||
| 206 | 206 | $this->store['sql_array']['SELECT'][] = 'tt.mark_time, ft.mark_time as forum_mark_time'; |
| 207 | 207 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
| 208 | 208 | 'FROM' => array(TOPICS_TRACK_TABLE => 'tt'), |
| 209 | - 'ON' => 'tt.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.topic_id = tt.topic_id' |
|
| 209 | + 'ON' => 'tt.user_id = '.(int) $this->user->data['user_id'].' AND t.topic_id = tt.topic_id' |
|
| 210 | 210 | ); |
| 211 | 211 | |
| 212 | 212 | $this->store['sql_array']['LEFT_JOIN'][] = array( |
| 213 | 213 | 'FROM' => array(FORUMS_TRACK_TABLE => 'ft'), |
| 214 | - 'ON' => 'ft.user_id = ' . (int) $this->user->data['user_id'] . ' AND t.forum_id = ft.forum_id' |
|
| 214 | + 'ON' => 'ft.user_id = '.(int) $this->user->data['user_id'].' AND t.forum_id = ft.forum_id' |
|
| 215 | 215 | ); |
| 216 | 216 | } |
| 217 | 217 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | { |
| 231 | 231 | if ($unix_start_time && $unix_stop_time) |
| 232 | 232 | { |
| 233 | - $this->store['sql_array']['WHERE'][] = (($mode == 'topic') ? 't.topic_time' : 'p.post_time') . " BETWEEN $unix_start_time AND $unix_stop_time"; |
|
| 233 | + $this->store['sql_array']['WHERE'][] = (($mode == 'topic') ? 't.topic_time' : 'p.post_time')." BETWEEN $unix_start_time AND $unix_stop_time"; |
|
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | return $this; |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | public function set_sorting($sort_key, $sort_dir = 'DESC') |
| 264 | 264 | { |
| 265 | - $this->store['sql_array']['ORDER_BY'] = $sort_key . ' ' . $sort_dir; |
|
| 265 | + $this->store['sql_array']['ORDER_BY'] = $sort_key.' '.$sort_dir; |
|
| 266 | 266 | |
| 267 | 267 | return $this; |
| 268 | 268 | } |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | { |
| 324 | 324 | if (!empty($column_id)) |
| 325 | 325 | { |
| 326 | - $this->store['sql_array']['WHERE'][] = (is_array($column_id)) ? $this->db->sql_in_set($column, $column_id) : $column . ' = ' . (int) $column_id; |
|
| 326 | + $this->store['sql_array']['WHERE'][] = (is_array($column_id)) ? $this->db->sql_in_set($column, $column_id) : $column.' = '.(int) $column_id; |
|
| 327 | 327 | } |
| 328 | 328 | } |
| 329 | 329 | |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | { |
| 335 | 335 | if ($check_visibility) |
| 336 | 336 | { |
| 337 | - $this->store['sql_array']['WHERE'][] = 't.topic_time <= ' . time(); |
|
| 337 | + $this->store['sql_array']['WHERE'][] = 't.topic_time <= '.time(); |
|
| 338 | 338 | $this->store['sql_array']['WHERE'][] = $this->content_visibility->get_global_visibility_sql('topic', $this->ex_fid_ary, 't.'); |
| 339 | 339 | } |
| 340 | 340 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->ptemplate->assign_block_vars('topicrow', array( |
| 104 | 104 | 'TOPIC_TITLE' => censor_text($row['topic_title']), |
| 105 | - 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "f=$forum_id&t=$topic_id"), |
|
| 105 | + 'U_VIEWTOPIC' => append_sid($this->phpbb_root_path.'viewtopic.'.$this->php_ext, "f=$forum_id&t=$topic_id"), |
|
| 106 | 106 | )); |
| 107 | 107 | unset($topic_data[$i]); |
| 108 | 108 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | BOOKMARKS_TABLE => 'b', |
| 121 | 121 | ), |
| 122 | 122 | 'WHERE' => array( |
| 123 | - 'b.user_id = ' . (int) $this->user->data['user_id'], |
|
| 123 | + 'b.user_id = '.(int) $this->user->data['user_id'], |
|
| 124 | 124 | 'b.topic_id = t.topic_id', |
| 125 | 125 | ), |
| 126 | 126 | ); |
@@ -64,13 +64,13 @@ discard block |
||
| 64 | 64 | 'USER_POSTS' => $this->user->data['user_posts'], |
| 65 | 65 | 'NEW_POSTS' => $this->get_new_posts_count(), |
| 66 | 66 | |
| 67 | - 'U_PROFILE' => append_sid($this->phpbb_root_path . 'memberlist.' . $this->php_ext, 'mode=viewprofile&u=' . $this->user->data['user_id']), |
|
| 68 | - 'U_SEARCH_NEW' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, 'search_id=newposts'), |
|
| 69 | - 'U_SEARCH_SELF' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, 'search_id=egosearch'), |
|
| 70 | - 'U_PRIVATE_MSG' => append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, 'i=pm&folder=inbox'), |
|
| 71 | - 'U_LOGOUT' => append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, 'mode=logout', true, $this->user->session_id), |
|
| 72 | - 'U_MCP' => ($this->auth->acl_get('m_')) ? append_sid($this->phpbb_root_path . 'mcp.' . $this->php_ext, false, true, $this->user->session_id) : '', |
|
| 73 | - 'U_ACP' => ($this->auth->acl_get('a_')) ? append_sid($this->phpbb_root_path . 'adm/index.' . $this->php_ext, 'i=-blitze-sitemaker-acp-menu_module', true, $this->user->session_id) : '') |
|
| 67 | + 'U_PROFILE' => append_sid($this->phpbb_root_path.'memberlist.'.$this->php_ext, 'mode=viewprofile&u='.$this->user->data['user_id']), |
|
| 68 | + 'U_SEARCH_NEW' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, 'search_id=newposts'), |
|
| 69 | + 'U_SEARCH_SELF' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, 'search_id=egosearch'), |
|
| 70 | + 'U_PRIVATE_MSG' => append_sid($this->phpbb_root_path.'ucp.'.$this->php_ext, 'i=pm&folder=inbox'), |
|
| 71 | + 'U_LOGOUT' => append_sid($this->phpbb_root_path.'ucp.'.$this->php_ext, 'mode=logout', true, $this->user->session_id), |
|
| 72 | + 'U_MCP' => ($this->auth->acl_get('m_')) ? append_sid($this->phpbb_root_path.'mcp.'.$this->php_ext, false, true, $this->user->session_id) : '', |
|
| 73 | + 'U_ACP' => ($this->auth->acl_get('a_')) ? append_sid($this->phpbb_root_path.'adm/index.'.$this->php_ext, 'i=-blitze-sitemaker-acp-menu_module', true, $this->user->session_id) : '') |
|
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | 76 | $content = $this->ptemplate->render_view('blitze/sitemaker', 'blocks/member_menu.html', 'member_menu_block'); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | POSTS_TABLE => 'p', |
| 93 | 93 | ), |
| 94 | 94 | 'WHERE' => array( |
| 95 | - 't.topic_id = p.topic_id AND p.post_time > ' . (int) $this->user->data['user_lastvisit'], |
|
| 95 | + 't.topic_id = p.topic_id AND p.post_time > '.(int) $this->user->data['user_lastvisit'], |
|
| 96 | 96 | ), |
| 97 | 97 | ); |
| 98 | 98 | |
@@ -281,8 +281,7 @@ discard block |
||
| 281 | 281 | if ($this->settings['context'] && $this->settings['preview_chars']) |
| 282 | 282 | { |
| 283 | 283 | $post_data = $this->forum_data->get_post_data($this->settings['context']); |
| 284 | - } |
|
| 285 | - else |
|
| 284 | + } else |
|
| 286 | 285 | { |
| 287 | 286 | $post_data = array_fill_keys(array_keys($topic_data), array(array('post_text' => '', 'bbcode_uid' => '', 'bbcode_bitfield' => ''))); |
| 288 | 287 | } |
@@ -303,8 +302,7 @@ discard block |
||
| 303 | 302 | $this->fields['user_colour'] = 'topic_last_poster_colour'; |
| 304 | 303 | |
| 305 | 304 | $this->ptemplate->assign_var('L_POST_BY_AUTHOR', $this->user->lang('LAST_POST_BY_AUTHOR')); |
| 306 | - } |
|
| 307 | - else |
|
| 305 | + } else |
|
| 308 | 306 | { |
| 309 | 307 | $this->fields['time'] = 'topic_time'; |
| 310 | 308 | $this->fields['user_id'] = 'topic_poster'; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | private function get_user_data($change_user) |
| 142 | 142 | { |
| 143 | 143 | $sql_array = $this->get_sql_array(); |
| 144 | - $method = 'query_' . $this->settings['qtype']; |
|
| 144 | + $method = 'query_'.$this->settings['qtype']; |
|
| 145 | 145 | |
| 146 | 146 | if (is_callable(array($this, $method))) |
| 147 | 147 | { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | private function query_featured(array &$sql_array, $change_user) |
| 180 | 180 | { |
| 181 | - $sql_array['WHERE'] .= ' AND user_id = ' . userlist::get_user_id($this->settings, $change_user); |
|
| 181 | + $sql_array['WHERE'] .= ' AND user_id = '.userlist::get_user_id($this->settings, $change_user); |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | private function query_recent(array &$sql_array) |
| 188 | 188 | { |
| 189 | - $sql_array['WHERE'] = 'user_id = ' . (int) $this->config['newest_user_id']; |
|
| 189 | + $sql_array['WHERE'] = 'user_id = '.(int) $this->config['newest_user_id']; |
|
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | /** |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | private function change_user() |
| 214 | 214 | { |
| 215 | 215 | $change = false; |
| 216 | - if ($this->settings['rotation'] == 'pageload' || $this->settings['last_changed'] < strtotime('-1 ' . self::$rotations[$this->settings['rotation']])) |
|
| 216 | + if ($this->settings['rotation'] == 'pageload' || $this->settings['last_changed'] < strtotime('-1 '.self::$rotations[$this->settings['rotation']])) |
|
| 217 | 217 | { |
| 218 | 218 | $this->settings['last_changed'] = time(); |
| 219 | 219 | $change = true; |
@@ -230,8 +230,8 @@ discard block |
||
| 230 | 230 | $rotation = $this->settings['rotation']; |
| 231 | 231 | |
| 232 | 232 | $this->ptemplate->assign_vars(array( |
| 233 | - 'QTYPE_EXPLAIN' => ($query_type == 'posts' || $query_type == 'recent') ? $this->user->lang('QTYPE_' . strtoupper($query_type)) : '', |
|
| 234 | - 'TITLE_EXPLAIN' => ($rotation != 'pageload') ? $this->user->lang(strtoupper($rotation) . '_MEMBER') : '', |
|
| 233 | + 'QTYPE_EXPLAIN' => ($query_type == 'posts' || $query_type == 'recent') ? $this->user->lang('QTYPE_'.strtoupper($query_type)) : '', |
|
| 234 | + 'TITLE_EXPLAIN' => ($rotation != 'pageload') ? $this->user->lang(strtoupper($rotation).'_MEMBER') : '', |
|
| 235 | 235 | )); |
| 236 | 236 | } |
| 237 | 237 | |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | */ |
| 242 | 242 | private function get_settings(array $bdata) |
| 243 | 243 | { |
| 244 | - $cached_settings = $this->cache->get('pt_block_data_' . $bdata['bid']); |
|
| 244 | + $cached_settings = $this->cache->get('pt_block_data_'.$bdata['bid']); |
|
| 245 | 245 | $settings = ($cached_settings && $cached_settings['hash'] === $bdata['hash']) ? $cached_settings : $bdata['settings']; |
| 246 | 246 | $settings['hash'] = $bdata['hash']; |
| 247 | 247 | |
@@ -261,8 +261,8 @@ discard block |
||
| 261 | 261 | $sql_data = array( |
| 262 | 262 | 'settings' => json_encode($settings) |
| 263 | 263 | ); |
| 264 | - $this->db->sql_query('UPDATE ' . $this->blocks_table . ' SET ' . $this->db->sql_build_array('UPDATE', $sql_data) . ' WHERE bid = ' . (int) $bid); |
|
| 265 | - $this->cache->put('pt_block_data_' . $bid, $this->settings); |
|
| 264 | + $this->db->sql_query('UPDATE '.$this->blocks_table.' SET '.$this->db->sql_build_array('UPDATE', $sql_data).' WHERE bid = '.(int) $bid); |
|
| 265 | + $this->cache->put('pt_block_data_'.$bid, $this->settings); |
|
| 266 | 266 | } |
| 267 | 267 | } |
| 268 | 268 | |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | 'RANK_TITLE' => $rank['title'], |
| 316 | 316 | 'RANK_IMG' => $rank['img'], |
| 317 | 317 | 'U_PROFILE' => get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']), |
| 318 | - 'U_SEARCH_USER' => append_sid($this->phpbb_root_path . 'search.' . $this->php_ext, "author_id={$row['user_id']}&sr=posts"), |
|
| 318 | + 'U_SEARCH_USER' => append_sid($this->phpbb_root_path.'search.'.$this->php_ext, "author_id={$row['user_id']}&sr=posts"), |
|
| 319 | 319 | )); |
| 320 | 320 | |
| 321 | 321 | return $tpl_data; |
@@ -146,8 +146,7 @@ |
||
| 146 | 146 | if (is_callable(array($this, $method))) |
| 147 | 147 | { |
| 148 | 148 | call_user_func_array(array($this, $method), array(&$sql_array, $change_user)); |
| 149 | - } |
|
| 150 | - else |
|
| 149 | + } else |
|
| 151 | 150 | { |
| 152 | 151 | return array(); |
| 153 | 152 | } |