Skip to content

Commit edf0fd0

Browse files
committed
[ticket/12413] Adding the missing visibilities
PHPBB3-12413
1 parent 6c58f8c commit edf0fd0

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

phpBB/phpbb/feed/attachments_base.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)