Changeset 6770


Ignore:
Timestamp:
Aug 16, 2010, 6:51:13 PM (10 years ago)
Author:
mistic100
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContestResults/maintain.inc.php

    r6768 r6770  
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    33
    4 define('default_config' , array(
     4define('default_config' , serialize(array(
    55        'menubar_mode' => array(
    66                'link' => 0,
     
    1414                'number' => 5
    1515        )
    16 ));
     16)));
    1717
    1818function plugin_install(){
     
    5252       
    5353        if(!isset($conf['ContestResults'])){
    54                 $query = "INSERT INTO " . CONFIG_TABLE . "(param,value,comment) VALUES('ContestResults', '" . serialize(default_config) . "', 'Parametres du plugin ContestResults');";
     54                $query = "INSERT INTO " . CONFIG_TABLE . "(param,value,comment) VALUES('ContestResults', '" . default_config . "', 'Parametres du plugin ContestResults');";
    5555                pwg_query($query);
    5656        }
     
    5959function plugin_activate(){
    6060        if(!isset($conf['ContestResults'])){
    61                 $query = "INSERT INTO " . CONFIG_TABLE . "(param,value,comment) VALUES('ContestResults', '" . serialize(default_config) . "', 'Parametres du plugin ContestResults');";
     61                $query = "INSERT INTO " . CONFIG_TABLE . "(param,value,comment) VALUES('ContestResults', '" . default_config . "', 'Parametres du plugin ContestResults');";
    6262                pwg_query($query);
    6363        }
Note: See TracChangeset for help on using the changeset viewer.