Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/includes/ucp/ucp_main.php

    r400 r702  
    33*
    44* @package ucp
    5 * @version $Id: ucp_main.php 9136 2008-11-30 14:36:59Z acydburn $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    634634        function assign_topiclist($mode = 'subscribed', $forbidden_forum_ary = array())
    635635        {
    636                 global $user, $db, $template, $config, $auth, $phpbb_root_path, $phpEx;
     636                global $user, $db, $template, $config, $cache, $auth, $phpbb_root_path, $phpEx;
    637637
    638638                $table = ($mode == 'subscribed') ? TOPICS_WATCH_TABLE : BOOKMARKS_TABLE;
    639639                $start = request_var('start', 0);
     640
     641                // Grab icons
     642                $icons = $cache->obtain_icons();
    640643
    641644                $sql_array = array(
     
    777780                        topic_status($row, $replies, $unread_topic, $folder_img, $folder_alt, $topic_type);
    778781
    779                         $view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");
     782                        $view_topic_url_params = "f=$forum_id&t=$topic_id";
     783                        $view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params);
    780784
    781785                        // Send vars to template
     
    810814                                'TOPIC_FOLDER_IMG'              => $user->img($folder_img, $folder_alt),
    811815                                'TOPIC_FOLDER_IMG_SRC'  => $user->img($folder_img, $folder_alt, false, '', 'src'),
     816                                'TOPIC_FOLDER_IMG_ALT'  => $user->lang[$folder_alt],
    812817                                'TOPIC_ICON_IMG'                => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['img'] : '',
    813818                                'TOPIC_ICON_IMG_WIDTH'  => (!empty($icons[$row['icon_id']])) ? $icons[$row['icon_id']]['width'] : '',
     
    819824                                'S_UNREAD_TOPIC'                => $unread_topic,
    820825
    821                                 'U_NEWEST_POST'                 => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&view=unread") . '#unread',
    822                                 'U_LAST_POST'                   => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
     826                                'U_NEWEST_POST'                 => append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params . '&view=unread') . '#unread',
     827                                'U_LAST_POST'                   => append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
    823828                                'U_VIEW_TOPIC'                  => $view_topic_url,
    824829                                'U_VIEW_FORUM'                  => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id),
Note: See TracChangeset for help on using the changeset viewer.