Fixed cache builder for styles
authorAlexander Ebert <ebert@woltlab.com>
Mon, 24 Sep 2012 22:46:21 +0000 (00:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 24 Sep 2012 22:46:21 +0000 (00:46 +0200)
wcfsetup/install/files/lib/system/cache/builder/StyleCacheBuilder.class.php

index 98f0f234360313478541f11139c98d9cddf6b19c..33e529a97d697c477cce9a3c74be6bb9b0cc82f7 100644 (file)
@@ -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 <http://opensource.org/licenses/lgpl-license.php>
  * @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);
                }