Changeset 702 for trunk/forum/style.php


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

Legend:

Unmodified
Added
Removed
  • trunk/forum/style.php

    r400 r702  
    33*
    44* @package phpBB3
    5 * @version $Id: style.php 8780 2008-08-22 12:52:48Z acydburn $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    1616$phpEx = substr(strrchr(__FILE__, '.'), 1);
    1717
    18 // Report all errors, except notices
    19 error_reporting(E_ALL ^ E_NOTICE);
     18// Report all errors, except notices and deprecation messages
     19if (!defined('E_DEPRECATED'))
     20{
     21        define('E_DEPRECATED', 8192);
     22}
     23error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
    2024
    2125require($phpbb_root_path . 'config.' . $phpEx);
     
    3236
    3337// Load Extensions
    34 if (!empty($load_extensions))
     38if (!empty($load_extensions) && function_exists('dl'))
    3539{
    3640        $load_extensions = explode(',', $load_extensions);
     
    9296        if (!$user)
    9397        {
    94                 $id                     = $config['default_style'];
    95                 $recompile      = false;
     98                $id                     = ($id) ? $id : $config['default_style'];
     99//              Commented out because calls do not always include the SID anymore
     100//              $recompile      = false;
    96101                $user           = array('user_id' => ANONYMOUS);
    97102        }
     
    119124        $user_image_lang = (file_exists($phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : $config['default_lang'];
    120125
     126        // Same query in session.php
    121127        $sql = 'SELECT *
    122128                FROM ' . STYLES_IMAGESET_DATA_TABLE . '
    123129                WHERE imageset_id = ' . $theme['imageset_id'] . "
    124                 AND image_filename <> '' 
     130                AND image_filename <> ''
    125131                AND image_lang IN ('" . $db->sql_escape($user_image_lang) . "', '')";
    126132        $result = $db->sql_query($sql, 3600);
     
    258264                                        $replace[] = $imgs[$img]['src'];
    259265                                break;
    260                                
     266
    261267                                case 'WIDTH':
    262268                                        $replace[] = $imgs[$img]['width'];
    263269                                break;
    264        
     270
    265271                                case 'HEIGHT':
    266272                                        $replace[] = $imgs[$img]['height'];
Note: See TracChangeset for help on using the changeset viewer.