From: Alexander Ebert Date: Mon, 24 Sep 2012 22:46:21 +0000 (+0200) Subject: Fixed cache builder for styles X-Git-Tag: 2.0.0_Beta_1~921 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a30f73c0a66ca1fe1cb804845b9a0912c6a7c635;p=GitHub%2FWoltLab%2FWCF.git Fixed cache builder for styles --- diff --git a/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php index 98f0f23436..33e529a97d 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php @@ -7,7 +7,7 @@ use wcf\system\WCF; * Caches the styles and style variables. * * @author Marcel Werk - * @copyright 2001-2011 WoltLab GmbH + * @copyright 2001-2012 WoltLab GmbH * @license GNU Lesser General Public License * @package com.woltlab.wcf * @subpackage system.cache.builder @@ -32,18 +32,6 @@ class StyleCacheBuilder implements ICacheBuilder { $statement->execute(); while ($row = $statement->fetchArray()) { if ($row['isDefault']) $data['default'] = $row['styleID']; - $row['variables'] = array(); - - // get variable - $sql = "SELECT * - FROM wcf".WCF_N."_style_variable - WHERE styleID = ?"; - $statement2 = WCF::getDB()->prepareStatement($sql); - $statement2->execute(array($row['styleID'])); - while ($row2 = $statement2->fetchArray()) { - $row['variables'][$row2['variableName']] = $row2['variableValue']; - } - $data['styles'][$row['styleID']] = new Style(null, $row); }