diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-09-16 18:33:22 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-09-16 18:33:22 +0000 |
commit | 2fa463cdeb5d8e4f2373aa834154ca27ea21c97a (patch) | |
tree | 87059418d9b487f76bf1c99ae7ec3184a62cd8ef /phpBB/faq.php | |
parent | - print memory usage if available (diff) | |
download | phpbb-2fa463cdeb5d8e4f2373aa834154ca27ea21c97a.tar.gz phpbb-2fa463cdeb5d8e4f2373aa834154ca27ea21c97a.tar.bz2 phpbb-2fa463cdeb5d8e4f2373aa834154ca27ea21c97a.zip |
- more updates, mostly bugfixes to the bbcode parser
- changed current_user in sessions (please review)
- give more flexibility to style authors in regard to the pagination elements
- profile fields updates (included a sample constuct into viewtopic_body.html - have to be documented extensivly)
- code optimizations (use of strpos, sizeof, loops not iterating functions on every call, memory savings...)
- and last but not least --- hopefully not introduced more bugs than healthy (*cough*)
git-svn-id: file:///svn/phpbb/trunk@4984 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r-- | phpBB/faq.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php index 845c12b2ac..d1317663f5 100644 --- a/phpBB/faq.php +++ b/phpBB/faq.php @@ -72,7 +72,7 @@ $template->assign_vars(array( 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP']) ); -for ($i = 0; $i < count($help_block); $i++) +for ($i = 0, $size = sizeof($help_block); $i < $size; $i++) { if (sizeof($help_block[$i])) { @@ -84,7 +84,7 @@ for ($i = 0; $i < count($help_block); $i++) 'BLOCK_TITLE' => $help_block_titles[$i]) ); - for ($j = 0; $j < count($help_block[$i]); $j++) + for ($j = 0, $_size = sizeof($help_block[$i]); $j < $_size; $j++) { $template->assign_block_vars('faq_block.faq_row', array( 'FAQ_QUESTION' => $help_block[$i][$j]['question'], |