aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_main.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-11-30 14:36:59 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-11-30 14:36:59 +0000
commita752a424de3d250c2bc79f7b680c936fc9ea987f (patch)
treea61d0cf8574246fa1d9108b100d133dbefd9e0a6 /phpBB/includes/ucp/ucp_main.php
parentfbabed373a908d2def316edad6e9d173b25589a8 (diff)
downloadforums-a752a424de3d250c2bc79f7b680c936fc9ea987f.tar
forums-a752a424de3d250c2bc79f7b680c936fc9ea987f.tar.gz
forums-a752a424de3d250c2bc79f7b680c936fc9ea987f.tar.bz2
forums-a752a424de3d250c2bc79f7b680c936fc9ea987f.tar.xz
forums-a752a424de3d250c2bc79f7b680c936fc9ea987f.zip
[Change] Performance increase for format_date() (Bug #37575 - Patch by BartVB)
[Change] Changed prosilver date separator from 'on' to 'ยป' [Feature] Added 'AGO' setting to relative date strings. For example: posted 14 minutes ago. (Patch by BartVB) [Fix] Extend vertical line for last post column if no posts in forum (Bug #37125) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9136 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_main.php')
-rw-r--r--phpBB/includes/ucp/ucp_main.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php
index 73e4af8b04..6f4e525b2f 100644
--- a/phpBB/includes/ucp/ucp_main.php
+++ b/phpBB/includes/ucp/ucp_main.php
@@ -25,7 +25,7 @@ class ucp_main
{
var $p_master;
var $u_action;
-
+
function ucp_main(&$p_master)
{
$this->p_master = &$p_master;
@@ -70,7 +70,7 @@ class ucp_main
$sql = 'SELECT forum_id
FROM ' . FORUMS_TABLE . '
WHERE forum_type = ' . FORUM_POST;
-
+
if (sizeof($forum_ary))
{
$sql .= ' AND ' . $db->sql_in_set('forum_id', $forum_ary, true);
@@ -258,7 +258,7 @@ class ucp_main
{
$forbidden_forums = $auth->acl_getf('!f_read', true);
$forbidden_forums = array_unique(array_keys($forbidden_forums));
-
+
$sql_array = array(
'SELECT' => 'f.*',
@@ -339,6 +339,7 @@ class ucp_main
'FORUM_IMAGE' => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang[$folder_alt] . '" />' : '',
'FORUM_IMAGE_SRC' => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '',
'FORUM_NAME' => $row['forum_name'],
+ 'FORUM_DESC' => generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
'LAST_POST_SUBJECT' => $row['forum_last_post_subject'],
'LAST_POST_TIME' => $last_post_time,
@@ -420,7 +421,7 @@ class ucp_main
}
$forbidden_forums = $auth->acl_getf('!f_read', true);
$forbidden_forums = array_unique(array_keys($forbidden_forums));
-
+
$this->assign_topiclist('bookmarks', $forbidden_forums);
break;
@@ -676,7 +677,7 @@ class ucp_main
'WHERE' => 'tw.user_id = ' . $user->data['user_id'] . '
AND t.topic_id = tw.topic_id
AND ' . $db->sql_in_set('t.forum_id', $forbidden_forum_ary, true, true),
-
+
'ORDER_BY' => 't.topic_last_post_time DESC'
);