phpBB

Code Changes

File: phpbb/avatar/driver/local.php

  Unmodified   Added   Modified   Removed
Line 64Line 64

$table_cols = isset($row['avatar_gallery_cols']) ? $row['avatar_gallery_cols'] : 4;
$row_count = $col_count = $avatar_pos = 0;


$table_cols = isset($row['avatar_gallery_cols']) ? $row['avatar_gallery_cols'] : 4;
$row_count = $col_count = $avatar_pos = 0;

			$avatar_count = sizeof($avatar_list[$category]);

			$avatar_count = count($avatar_list[$category]);


reset($avatar_list[$category]);



reset($avatar_list[$category]);


Line 158Line 158
	*/
protected function get_avatar_list($user)
{

	*/
protected function get_avatar_list($user)
{

		$avatar_list = ($this->cache == null) ? false : $this->cache->get('_avatar_local_list');

		$avatar_list = ($this->cache == null) ? false : $this->cache->get('_avatar_local_list_' . $user->data['user_lang']);


if ($avatar_list === false)
{


if ($avatar_list === false)
{

Line 198Line 198

if ($this->cache != null)
{


if ($this->cache != null)
{

				$this->cache->put('_avatar_local_list', $avatar_list, 86400);

				$this->cache->put('_avatar_local_list_' . $user->data['user_lang'], $avatar_list, 86400);

			}
}


			}
}