@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * Upload image and return updated ad code or <img> of new banner when using ajax. |
116 | 116 | * |
117 | 117 | * @param string $ad_code Current ad code |
118 | - * @return mixed \phpbb\json_response when request is ajax or updated ad code otherwise. |
|
118 | + * @return string \phpbb\json_response when request is ajax or updated ad code otherwise. |
|
119 | 119 | */ |
120 | 120 | public function banner_upload($ad_code) |
121 | 121 | { |
@@ -226,6 +226,9 @@ discard block |
||
226 | 226 | return $ad_owner_id[0]; |
227 | 227 | } |
228 | 228 | |
229 | + /** |
|
230 | + * @param boolean $success |
|
231 | + */ |
|
229 | 232 | protected function send_ajax_response($success, $text) |
230 | 233 | { |
231 | 234 | $json_response = new \phpbb\json_response; |