Ignore:
Timestamp:
Oct 28, 2010, 3:09:51 PM (13 years ago)
Author:
cljosse
Message:

[Gally's theme 'cuise'] Compatibility whith GMaps

File:
1 edited

Legend:

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

    r7373 r7459  
    11<?php
    2 
    3 include_once(PHPWG_THEMES_PATH.'gally-default/admin/Conf.class.inc.php');
    4 
    52
    63function theme_activate($id, $version, &$errors)
    74{
    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);
    325
    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();
    436}
    447
Note: See TracChangeset for help on using the changeset viewer.