aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorShitiz Garg <mail@dragooon.net>2014-06-26 03:07:45 +0530
committerShitiz Garg <mail@dragooon.net>2014-06-27 17:48:37 +0530
commit2cf4a4f6fe74ee6d774956113570d6ed7c5246cc (patch)
tree33197bd3ede53b63997c2b55a84569153ae60d58 /phpBB/viewtopic.php
parentc1df2ce62a62517e840ff30fa11a6cffb84396bc (diff)
downloadforums-2cf4a4f6fe74ee6d774956113570d6ed7c5246cc.tar
forums-2cf4a4f6fe74ee6d774956113570d6ed7c5246cc.tar.gz
forums-2cf4a4f6fe74ee6d774956113570d6ed7c5246cc.tar.bz2
forums-2cf4a4f6fe74ee6d774956113570d6ed7c5246cc.tar.xz
forums-2cf4a4f6fe74ee6d774956113570d6ed7c5246cc.zip
[ticket/12759] Cache all lang_options in lang_helper instead
PHPBB3-12759
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 760b4e5c87..d87f7de2b0 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1270,7 +1270,6 @@ if ($config['load_cpf_viewtopic'])
// filter out fields not to be displayed on viewtopic. Yes, it's a hack, but this shouldn't break any MODs.
$profile_fields_cache = array();
- $profile_rows = array();
foreach ($profile_fields_tmp as $profile_user_id => $profile_fields)
{
$profile_fields_cache[$profile_user_id] = array();
@@ -1279,15 +1278,10 @@ if ($config['load_cpf_viewtopic'])
if ($profile_field['data']['field_show_on_vt'])
{
$profile_fields_cache[$profile_user_id][$used_ident] = $profile_field;
- $profile_rows[] = $profile_field;
}
}
}
-
- // Cache the language options for optimisation
- $cp->cache_profile_fields_lang_options($profile_rows);
-
- unset($profile_fields_tmp, $profile_rows);
+ unset($profile_fields_tmp);
}
// Generate online information for user