File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,15 +21,10 @@ abstract class attachments_base extends \phpbb\feed\base
2121 */
2222 protected $ attachments = array ();
2323
24- function open ()
25- {
26- $ this ->fetch_attachments ();
27- }
28-
2924 /**
3025 * Retrieve the list of attachments that may be displayed
3126 */
32- function fetch_attachments ()
27+ protected function fetch_attachments ()
3328 {
3429 global $ db ;
3530
@@ -68,13 +63,18 @@ function fetch_attachments()
6863 $ db ->sql_freeresult ($ result );
6964 }
7065
66+ public function open ()
67+ {
68+ $ this ->fetch_attachments ();
69+ }
70+
7171 /**
7272 * Get attachments related to a given post
7373 *
74- * @param $post_id Post id
75- * @return mixed Attachments related to $post_id
74+ * @param $post_id int Post id
75+ * @return mixed Attachments related to $post_id
7676 */
77- function get_attachments ($ post_id )
77+ public function get_attachments ($ post_id )
7878 {
7979 return $ this ->attachments [$ post_id ];
8080 }
You can’t perform that action at this time.
0 commit comments