diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-06-06 17:03:40 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-06-06 17:03:40 +0200 |
commit | 06a51b09f1414f350b0c199a7c79b81a96bb98a7 (patch) | |
tree | 8057697085d82b69588c66ed7fd28ced51270807 /phpBB/feed.php | |
parent | 2916ddc38c964992b44fd5be50963521f59c1858 (diff) | |
download | forums-06a51b09f1414f350b0c199a7c79b81a96bb98a7.tar forums-06a51b09f1414f350b0c199a7c79b81a96bb98a7.tar.gz forums-06a51b09f1414f350b0c199a7c79b81a96bb98a7.tar.bz2 forums-06a51b09f1414f350b0c199a7c79b81a96bb98a7.tar.xz forums-06a51b09f1414f350b0c199a7c79b81a96bb98a7.zip |
[ticket/11481] Move feed post base to own file
PHPBB3-11481
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r-- | phpBB/feed.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php index 3158e76110..039d9fc80a 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -336,49 +336,6 @@ function feed_generate_content($content, $uid, $bitfield, $options) } /** -* Abstract class for post based feeds -* -* @package phpBB3 -*/ -class phpbb_feed_post_base extends phpbb_feed_base -{ - var $num_items = 'feed_limit_post'; - - function set_keys() - { - $this->set('title', 'post_subject'); - $this->set('title2', 'topic_title'); - - $this->set('author_id', 'user_id'); - $this->set('creator', 'username'); - $this->set('published', 'post_time'); - $this->set('updated', 'post_edit_time'); - $this->set('text', 'post_text'); - - $this->set('bitfield', 'bbcode_bitfield'); - $this->set('bbcode_uid','bbcode_uid'); - - $this->set('enable_bbcode', 'enable_bbcode'); - $this->set('enable_smilies', 'enable_smilies'); - $this->set('enable_magic_url', 'enable_magic_url'); - } - - function adjust_item(&$item_row, &$row) - { - global $phpEx, $config, $user; - - $item_row['link'] = feed_append_sid('/viewtopic.' . $phpEx, "t={$row['topic_id']}&p={$row['post_id']}#p{$row['post_id']}"); - - if ($config['feed_item_statistics']) - { - $item_row['statistics'] = $user->lang['POSTED'] . ' ' . $user->lang['POST_BY_AUTHOR'] . ' ' . $this->user_viewprofile($row) - . ' ' . $this->separator_stats . ' ' . $user->format_date($row[$this->get('published')]) - . (($this->is_moderator_approve_forum($row['forum_id']) && !$row['post_approved']) ? ' ' . $this->separator_stats . ' ' . $user->lang['POST_UNAPPROVED'] : ''); - } - } -} - -/** * Abstract class for topic based feeds * * @package phpBB3 |