aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/feed/post_base.php
blob: f6dc39cbec32907f8193f98c5447eae259612aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
 *
 * This file is part of the phpBB Forum Software package.
 *
 * @copyright (c) phpBB Limited <https://www.phpbb.com>
 * @license GNU General Public License, version 2 (GPL-2.0)
 *
 * For full copyright and license information, please see
 * the docs/CREDITS.txt file.
 *
 */

namespace phpbb\feed;

/**
 * Abstract class for post based feeds
 */
abstract class post_base extends attachments_base
{
	protected $num_items = 'feed_limit_post';

	/**
	 * {@inheritdoc}
	 */
	public 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');
	}

	/**
	 * {@inheritdoc}
	 */
	public function adjust_item(&$item_row, &$row)
	{
		$item_row['link'] = $this->helper->append_sid('viewtopic.' . $this->phpEx, "t={$row['topic_id']}&amp;p={$row['post_id']}#p{$row['post_id']}");

		if ($this->config['feed_item_statistics'])
		{
			$item_row['statistics'] = $this->user->lang['POSTED'] . ' ' . $this->user->lang['POST_BY_AUTHOR'] . ' ' . $this->user_viewprofile($row)
				. ' ' . $this->separator_stats . ' ' . $this->user->format_date($row[$this->get('published')])
				. (($this->is_moderator_approve_forum($row['forum_id']) && (int) $row['post_visibility'] === ITEM_UNAPPROVED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_UNAPPROVED'] : '')
				. (($this->is_moderator_approve_forum($row['forum_id']) && (int) $row['post_visibility'] === ITEM_DELETED) ? ' ' . $this->separator_stats . ' ' . $this->user->lang['POST_DELETED'] : '');
		}
	}
}
ss='upd'>po/eu.po2
-rw-r--r--po/fa.po2
-rw-r--r--po/fi.po2
-rw-r--r--po/fr.po2
-rw-r--r--po/fur.po2
-rw-r--r--po/ga.po2
-rw-r--r--po/gl.po2
-rw-r--r--po/he.po2
-rw-r--r--po/hi.po2
-rw-r--r--po/hr.po2
-rw-r--r--po/hu.po2
-rw-r--r--po/id.po2
-rw-r--r--po/is.po2
-rw-r--r--po/it.po2
-rw-r--r--po/ja.po2
-rw-r--r--po/ko.po2
-rw-r--r--po/ky.po2
-rw-r--r--po/lt.po2
-rw-r--r--po/ltg.po2
-rw-r--r--po/lv.po2
-rw-r--r--po/mk.po2
-rw-r--r--po/mn.po2
-rw-r--r--po/ms.po2
-rw-r--r--po/mt.po2
-rw-r--r--po/nb.po2
-rw-r--r--po/nl.po2
-rw-r--r--po/nn.po2
-rw-r--r--po/pa_IN.po2
-rw-r--r--po/pl.po2
-rw-r--r--po/pt.po2
-rw-r--r--po/pt_BR.po2
-rw-r--r--po/ro.po2
-rw-r--r--po/ru.po2
-rw-r--r--po/sc.po2
-rw-r--r--po/sk.po2
-rw-r--r--po/sl.po2
-rw-r--r--po/sq.po2
-rw-r--r--po/sr.po2
-rw-r--r--po/sr@Latn.po2
-rw-r--r--po/sv.po2
-rw-r--r--po/ta.po2
-rw-r--r--po/tg.po2
-rw-r--r--po/th.po2
-rw-r--r--po/tl.po2
-rw-r--r--po/tr.po2
-rw-r--r--po/uk.po2
-rw-r--r--po/uz.po2
-rw-r--r--po/uz@cyrillic.po2
-rw-r--r--po/vi.po2
-rw-r--r--po/wa.po2
-rw-r--r--po/zh_CN.po2
-rw-r--r--po/zh_TW.po2
71 files changed, 72 insertions, 72 deletions
diff --git a/po/af.po b/po/af.po
index cdb86c2..3bb492e 100644
--- a/po/af.po
+++ b/po/af.po
@@ -457,7 +457,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/am.po b/po/am.po
index 11268f3..1679b97 100644
--- a/po/am.po
+++ b/po/am.po
@@ -425,7 +425,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/ar.po b/po/ar.po
index ab7f8db..1e5e452 100644
--- a/po/ar.po
+++ b/po/ar.po
@@ -457,7 +457,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/az.po b/po/az.po
index 9db69b6..9890dba 100644
--- a/po/az.po
+++ b/po/az.po
@@ -457,7 +457,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/be.po b/po/be.po
index 5b825ad..4476ee2 100644
--- a/po/be.po
+++ b/po/be.po
@@ -427,7 +427,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/bg.po b/po/bg.po
index b67ef03..69800e6 100644
--- a/po/bg.po
+++ b/po/bg.po
@@ -458,7 +458,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/bn.po b/po/bn.po
index 6607f47..9356dbc 100644
--- a/po/bn.po
+++ b/po/bn.po
@@ -456,7 +456,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/br.po b/po/br.po
index 249e5a7..2ea161c 100644
--- a/po/br.po
+++ b/po/br.po
@@ -431,7 +431,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/bs.po b/po/bs.po
index 5450145..15a04eb 100644
--- a/po/bs.po
+++ b/po/bs.po
@@ -457,7 +457,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/ca.po b/po/ca.po
index 914d0fd..ff283c9 100644
--- a/po/ca.po
+++ b/po/ca.po
@@ -462,7 +462,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/cs.po b/po/cs.po
index 6557a28..237f275 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -457,7 +457,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/cy.po b/po/cy.po
index 6570973..bfb784f 100644
--- a/po/cy.po
+++ b/po/cy.po
@@ -459,7 +459,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/da.po b/po/da.po
index 2e19bd6..6cb8419 100644
--- a/po/da.po
+++ b/po/da.po
@@ -468,7 +468,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
"Ingen ethernet netværksadapter konfigureret for LAN er blevet fundet på dit "
diff --git a/po/de.po b/po/de.po
index 20d3a96..bf7915f 100644
--- a/po/de.po
+++ b/po/de.po
@@ -479,7 +479,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/drakx-net.pot b/po/drakx-net.pot
index 7cfc7e2..71c0843 100644
--- a/po/drakx-net.pot
+++ b/po/drakx-net.pot
@@ -368,7 +368,7 @@ msgstr ""
msgid ""
"No ethernet network adapter configured for LAN has been detected on your system.\n"
"\n"
-"Please run the hardware configuration tool to configure it, and certify that the Mandirva firewall is not enabled for network adapter connected to your LAN network."
+"Please run the hardware configuration tool to configure it, and certify that the Mandriva firewall is not enabled for network adapter connected to your LAN network."
msgstr ""
#: ../bin/drakgw:316
diff --git a/po/el.po b/po/el.po
index a62b379..01fefca 100644
--- a/po/el.po
+++ b/po/el.po
@@ -480,14 +480,14 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
"Δεν έχει βρεθεί στο σύστημά σου κάποιος προσαρμοστής δικτύου ethernet, "
"ρυθμισμένος για τοπικό δίκτυο (LAN).\n"
"\n"
"Παρακαλώ, άνοιξε το εργαλείο ρύθμισης του υλικού, για να τον ρυθμίσεις, και "
-"σιγουρέψου ότι το τοίχος προστασίας της Mandirva δεν είναι ενεργοποιημένο, "
+"σιγουρέψου ότι το τοίχος προστασίας της Mandriva δεν είναι ενεργοποιημένο, "
"για προσαρμοστή δικτύου συνδεδεμένο σε τοπικό δίκτυο (LAN)."
#: ../bin/drakgw:316
diff --git a/po/eo.po b/po/eo.po
index ea99af3..9714af3 100644
--- a/po/eo.po
+++ b/po/eo.po
@@ -434,7 +434,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/es.po b/po/es.po
index c28ba97..9f31108 100644
--- a/po/es.po
+++ b/po/es.po
@@ -463,7 +463,7 @@ msgid ""
"system.\n"
"\n"
"Please run the hardware configuration tool to configure it, and certify that "
-"the Mandirva firewall is not enabled for network adapter connected to your "
+"the Mandriva firewall is not enabled for network adapter connected to your "
"LAN network."
msgstr ""
diff --git a/po/et.po b/po/et.po
index 935355a..db3bfb9 100644
--- a/po/et.po
+++ b/po/et.po