@@ -89,7 +89,7 @@ |
||
89 | 89 | $this->db->sql_freeresult($result); |
90 | 90 | |
91 | 91 | $current_location_id = ''; |
92 | - $data = array_filter($data, function($row) use (&$current_location_id) { |
|
92 | + $data = array_filter($data, function ($row) use (&$current_location_id) { |
|
93 | 93 | $return = $current_location_id != $row['location_id']; |
94 | 94 | $current_location_id = $row['location_id']; |
95 | 95 | return $return; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * Upload image and return updated ad code or <img> of new banner when using ajax. |
114 | 114 | * |
115 | 115 | * @param string $ad_code Current ad code |
116 | - * @return mixed \phpbb\json_response when request is ajax or updated ad code otherwise. |
|
116 | + * @return string \phpbb\json_response when request is ajax or updated ad code otherwise. |
|
117 | 117 | */ |
118 | 118 | public function banner_upload($ad_code) |
119 | 119 | { |
@@ -253,6 +253,10 @@ discard block |
||
253 | 253 | } |
254 | 254 | } |
255 | 255 | |
256 | + /** |
|
257 | + * @param boolean $success |
|
258 | + * @param string $text |
|
259 | + */ |
|
256 | 260 | protected function send_ajax_response($success, $text) |
257 | 261 | { |
258 | 262 | $json_response = new \phpbb\json_response; |