aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/feed/base.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-06-06 20:04:23 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-06-06 20:04:23 +0200
commit3efe0eb24687a0e36e316b60887eff3ed45ae9b4 (patch)
tree4ac1e2f443ca5b256f59824706e178f2b6b00f3e /phpBB/includes/feed/base.php
parentb5f148474450e6101e25ee0afbd04d945d21083d (diff)
downloadforums-3efe0eb24687a0e36e316b60887eff3ed45ae9b4.tar
forums-3efe0eb24687a0e36e316b60887eff3ed45ae9b4.tar.gz
forums-3efe0eb24687a0e36e316b60887eff3ed45ae9b4.tar.bz2
forums-3efe0eb24687a0e36e316b60887eff3ed45ae9b4.tar.xz
forums-3efe0eb24687a0e36e316b60887eff3ed45ae9b4.zip
[ticket/11481] Use container for all classes and inject dependencies
PHPBB3-11481
Diffstat (limited to 'phpBB/includes/feed/base.php')
-rw-r--r--phpBB/includes/feed/base.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/phpBB/includes/feed/base.php b/phpBB/includes/feed/base.php
index 300ccf9b1e..2ffd20d31a 100644
--- a/phpBB/includes/feed/base.php
+++ b/phpBB/includes/feed/base.php
@@ -23,6 +23,12 @@ if (!defined('IN_PHPBB'))
abstract class phpbb_feed_base
{
/**
+ * Feed helper object
+ * @var phpbb_feed_helper
+ */
+ protected $helper;
+
+ /**
* SQL Query to be executed to get feed items
*/
var $sql = array();
@@ -49,8 +55,11 @@ abstract class phpbb_feed_base
/**
* Constructor
+ *
+ * @param phpbb_feed_helper $helper Feed helper
+ * @return null
*/
- function __construct()
+ function __construct(phpbb_feed_helper $helper)
{
global $config;
@@ -67,6 +76,8 @@ abstract class phpbb_feed_base
$this->num_items = 10;
}
}
+
+ $this->helper = $helper;
}
/**
@@ -225,6 +236,6 @@ abstract class phpbb_feed_base
return $user->lang['GUEST'];
}
- return '<a href="' . feed_append_sid('/memberlist.' . $phpEx, 'mode=viewprofile&amp;u=' . $author_id) . '">' . $row[$this->get('creator')] . '</a>';
+ return '<a href="' . $this->helper->append_sid('/memberlist.' . $phpEx, 'mode=viewprofile&amp;u=' . $author_id) . '">' . $row[$this->get('creator')] . '</a>';
}
}