Changeset 7373 for extensions/gally


Ignore:
Timestamp:
Oct 24, 2010, 1:58:22 PM (10 years ago)
Author:
grum
Message:

fix bug:1948 (previous commit was not enough)

Location:
extensions/gally
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-cuise/admin/maintain.inc.php

    r7337 r7373  
    66function theme_activate($id, $version, &$errors)
    77{
    8   $config = new Conf();
    9   $config->setFileName(PHPWG_ROOT_PATH."local/themes/gally-cuise/conf/local.conf");
    10   $config->read(false);
    11   $config->setConf(array('menuAnimated'=>'fade'), false);
    12   $config->write();
     8  $forcedToDefault=array(
     9    "imageCenterMode" => '',
     10    "imageCenterOffset" => '',
     11    "imageCenterTopMin" => '',
     12    "imageCenterTopBorder" => '',
     13    "interfaceAnimated" => '',
     14    "commentAnimated" => '',
     15    "animateDelay" => '',
     16    "marginContainer" => '',
     17    "paddingContainer" => '',
     18    "tabsAnimated" => '',
     19    "tabsHidden" => '',
     20    "tabsVisible" => '',
     21    "tabsPosition" => '',
     22    "commentRows" => '',
     23    "menuAnimated" => '',
     24    "menuWidth" => '',
     25    "menuMaxWidth" => '',
     26    "menuMSIEMaxWidth" => '',
     27    "expandMenu" => '',
     28  );
     29  $configDefault = new Conf();
     30  $configDefault->setFileName(PHPWG_ROOT_PATH."themes/gally-cuise/conf/default.conf");
     31  $configDefault->read(false);
     32
     33  $configLocal = new Conf();
     34  $configLocal->setFileName(PHPWG_ROOT_PATH."local/themes/gally-cuise/conf/local.conf");
     35  $configLocal->read(false);
     36
     37  foreach($forcedToDefault as $key => $param)
     38  {
     39    $forcedToDefault[$key]=$configDefault->getConfValue($key);
     40  }
     41  $configLocal->setConf($forcedToDefault, false);
     42  $configLocal->write();
    1343}
    1444
  • extensions/gally/gally-graphite/admin/maintain.inc.php

    r7337 r7373  
    55function theme_activate($id, $version, &$errors)
    66{
    7   $config = new Conf();
    8   $config->setFileName(PHPWG_ROOT_PATH."local/themes/gally-graphite/conf/local.conf");
    9   $config->read(false);
    10   $config->setConf(array('menuAnimated'=>'none'), false);
    11   $config->write();
     7  $forcedToDefault=array(
     8    "imageCenterMode" => '',
     9    "imageCenterOffset" => '',
     10    "imageCenterTopMin" => '',
     11    "imageCenterTopBorder" => '',
     12    "interfaceAnimated" => '',
     13    "commentAnimated" => '',
     14    "animateDelay" => '',
     15    "marginContainer" => '',
     16    "paddingContainer" => '',
     17    "tabsAnimated" => '',
     18    "tabsHidden" => '',
     19    "tabsVisible" => '',
     20    "tabsPosition" => '',
     21    "commentRows" => '',
     22    "menuAnimated" => '',
     23    "menuWidth" => '',
     24    "menuMaxWidth" => '',
     25    "menuMSIEMaxWidth" => '',
     26    "expandMenu" => '',
     27  );
     28  $configDefault = new Conf();
     29  $configDefault->setFileName(PHPWG_ROOT_PATH."themes/gally-graphite/conf/default.conf");
     30  $configDefault->read(false);
     31
     32  $configLocal = new Conf();
     33  $configLocal->setFileName(PHPWG_ROOT_PATH."local/themes/gally-graphite/conf/local.conf");
     34  $configLocal->read(false);
     35
     36  foreach($forcedToDefault as $key => $param)
     37  {
     38    $forcedToDefault[$key]=$configDefault->getConfValue($key);
     39  }
     40  $configLocal->setConf($forcedToDefault, false);
     41  $configLocal->write();
    1242}
    1343
  • extensions/gally/gally-grum-dark-II/admin/maintain.inc.php

    r7337 r7373  
    33include_once(PHPWG_THEMES_PATH.'gally-default/admin/Conf.class.inc.php');
    44
    5 
    65function theme_activate($id, $version, &$errors)
    76{
    8   $config = new Conf();
    9   $config->setFileName(PHPWG_ROOT_PATH."local/themes/gally-grum-dark-II/conf/local.conf");
    10   $config->read(false);
    11   $config->setConf(array('menuAnimated'=>'fade'), false);
    12   $config->write();
     7  $forcedToDefault=array(
     8    "imageCenterMode" => '',
     9    "imageCenterOffset" => '',
     10    "imageCenterTopMin" => '',
     11    "imageCenterTopBorder" => '',
     12    "interfaceAnimated" => '',
     13    "commentAnimated" => '',
     14    "animateDelay" => '',
     15    "marginContainer" => '',
     16    "paddingContainer" => '',
     17    "tabsAnimated" => '',
     18    "tabsHidden" => '',
     19    "tabsVisible" => '',
     20    "tabsPosition" => '',
     21    "commentRows" => '',
     22    "menuAnimated" => '',
     23    "menuWidth" => '',
     24    "menuMaxWidth" => '',
     25    "menuMSIEMaxWidth" => '',
     26    "expandMenu" => '',
     27  );
     28  $configDefault = new Conf();
     29  $configDefault->setFileName(PHPWG_ROOT_PATH."themes/gally-grum-dark-II/conf/default.conf");
     30  $configDefault->read(false);
     31
     32  $configLocal = new Conf();
     33  $configLocal->setFileName(PHPWG_ROOT_PATH."local/themes/gally-grum-dark-II/conf/local.conf");
     34  $configLocal->read(false);
     35
     36  foreach($forcedToDefault as $key => $param)
     37  {
     38    $forcedToDefault[$key]=$configDefault->getConfValue($key);
     39  }
     40  $configLocal->setConf($forcedToDefault, false);
     41  $configLocal->write();
    1342}
    1443
  • extensions/gally/gally-lapis-lazuli/admin/maintain.inc.php

    r6109 r7373  
    11<?php
     2
     3include_once(PHPWG_THEMES_PATH.'gally-default/admin/Conf.class.inc.php');
    24
    35function theme_activate($id, $version, &$errors)
    46{
     7  $forcedToDefault=array(
     8    "imageCenterMode" => '',
     9    "imageCenterOffset" => '',
     10    "imageCenterTopMin" => '',
     11    "imageCenterTopBorder" => '',
     12    "interfaceAnimated" => '',
     13    "commentAnimated" => '',
     14    "animateDelay" => '',
     15    "marginContainer" => '',
     16    "paddingContainer" => '',
     17    "tabsAnimated" => '',
     18    "tabsHidden" => '',
     19    "tabsVisible" => '',
     20    "tabsPosition" => '',
     21    "commentRows" => '',
     22    "menuAnimated" => '',
     23    "menuWidth" => '',
     24    "menuMaxWidth" => '',
     25    "menuMSIEMaxWidth" => ''
     26    //"expandMenu" => '',
     27  );
     28  $configDefault = new Conf();
     29  $configDefault->setFileName(PHPWG_ROOT_PATH."themes/gally-lapis-lazuli/conf/default.conf");
     30  $configDefault->read(false);
    531
     32  $configLocal = new Conf();
     33  $configLocal->setFileName(PHPWG_ROOT_PATH."local/themes/gally-lapis-lazuli/conf/local.conf");
     34  $configLocal->read(false);
     35
     36  foreach($forcedToDefault as $key => $param)
     37  {
     38    $forcedToDefault[$key]=$configDefault->getConfValue($key);
     39  }
     40  $configLocal->setConf($forcedToDefault, false);
     41  $configLocal->write();
    642}
    743
Note: See TracChangeset for help on using the changeset viewer.