aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/feed
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2014-04-22 19:07:03 +0200
committerNicofuma <github@nicofuma.fr>2014-05-02 13:25:40 +0200
commitedf0fd0fbd4e76e57bb3899aaffeee730eec8261 (patch)
tree3aabe9bf9950f68bff1653b7d15fe023445d6b0c /phpBB/phpbb/feed
parent6c58f8cdeef5793c8ad5f2762ad81ad6e02bf9e7 (diff)
downloadforums-edf0fd0fbd4e76e57bb3899aaffeee730eec8261.tar
forums-edf0fd0fbd4e76e57bb3899aaffeee730eec8261.tar.gz
forums-edf0fd0fbd4e76e57bb3899aaffeee730eec8261.tar.bz2
forums-edf0fd0fbd4e76e57bb3899aaffeee730eec8261.tar.xz
forums-edf0fd0fbd4e76e57bb3899aaffeee730eec8261.zip
[ticket/12413] Adding the missing visibilities
PHPBB3-12413
Diffstat (limited to 'phpBB/phpbb/feed')
-rw-r--r--phpBB/phpbb/feed/attachments_base.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/phpbb/feed/attachments_base.php b/phpBB/phpbb/feed/attachments_base.php
index b497d3b3f7..b8c72a7fb1 100644
--- a/phpBB/phpbb/feed/attachments_base.php
+++ b/phpBB/phpbb/feed/attachments_base.php
@@ -21,15 +21,10 @@ abstract class attachments_base extends \phpbb\feed\base
*/
protected $attachments = array();
- function open()
- {
- $this->fetch_attachments();
- }
-
/**
* Retrieve the list of attachments that may be displayed
*/
- function fetch_attachments()
+ protected function fetch_attachments()
{
global $db;
@@ -68,13 +63,18 @@ abstract class attachments_base extends \phpbb\feed\base
$db->sql_freeresult($result);
}
+ public function open()
+ {
+ $this->fetch_attachments();
+ }
+
/**
* Get attachments related to a given post
*
- * @param $post_id Post id
- * @return mixed Attachments related to $post_id
+ * @param $post_id int Post id
+ * @return mixed Attachments related to $post_id
*/
- function get_attachments($post_id)
+ public function get_attachments($post_id)
{
return $this->attachments[$post_id];
}