aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-11-26 14:41:59 +0000
committerNils Adermann <naderman@naderman.de>2006-11-26 14:41:59 +0000
commit5c5330c29d3e19eab804d9dbfd0261e6459e00b8 (patch)
tree186d83619f9fdb0850110efe786c8bf753cc87a0 /phpBB/includes
parente3889a72e802c4dfea6812f9ff29f5acdd302a76 (diff)
downloadforums-5c5330c29d3e19eab804d9dbfd0261e6459e00b8.tar
forums-5c5330c29d3e19eab804d9dbfd0261e6459e00b8.tar.gz
forums-5c5330c29d3e19eab804d9dbfd0261e6459e00b8.tar.bz2
forums-5c5330c29d3e19eab804d9dbfd0261e6459e00b8.tar.xz
forums-5c5330c29d3e19eab804d9dbfd0261e6459e00b8.zip
Message for my last commit (no I didn't intent it to be "message"):
- include forums without search indexing in author searches and egosearch [Bug #5530, #4782] - allow changing search options when there are no results if a pre-defined search is used - added user_pass_convert flag for unconverted phpBB2 passwords and password conversion on first login and for this commit: - truncating dropdown in acp_styles and showing tooltip with complete string [Bug #5258] - UTF-8 compatible font for OS X users in ACP - destroy search cache on changing a post author [Bug #5538] git-svn-id: file:///svn/phpbb/trunk@6659 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_styles.php2
-rw-r--r--phpBB/includes/mcp/mcp_post.php17
2 files changed, 18 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index 4377dd7e20..e5e5f1a2b8 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -978,7 +978,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
foreach ($classes as $class)
{
$selected = ($class == $edit_class) ? ' selected="selected"' : '';
- $s_classes .= '<option value="' . $class . '"' . $selected . '>' . $class . '</option>';
+ $s_classes .= '<option value="' . $class . '" title="' . $class . '"' . $selected . '>' . substr($class, 0, 40) . '</option>';
}
$template->assign_vars(array(
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php
index b2b0ceb419..a1cc7f4331 100644
--- a/phpBB/includes/mcp/mcp_post.php
+++ b/phpBB/includes/mcp/mcp_post.php
@@ -385,6 +385,23 @@ function change_poster(&$post_info, $userdata)
$db->sql_query($sql);
}
+ // refresh search cache of this post
+ $search_type = basename($config['search_type']);
+
+ if (file_exists($phpbb_root_path . 'includes/search/' . $search_type . '.' . $phpEx))
+ {
+ require("{$phpbb_root_path}includes/search/$search_type.$phpEx");
+
+ // We do some additional checks in the module to ensure it can actually be utilised
+ $error = false;
+ $search = new $search_type($error);
+
+ if (!$error && method_exists($search, 'destroy_cache'))
+ {
+ $search->destroy_cache(array(), array($post_info['user_id'], $userdata['user_id']));
+ }
+ }
+
$from_username = $post_info['username'];
$to_username = $userdata['username'];