Changeset 10406


Ignore:
Timestamp:
04/16/11 11:20:54 (9 years ago)
Author:
Gotcha
Message:

Suppression du contrôle sur le numéro de version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/charlies_content/main.inc.php

    r9958 r10406  
    11<?php /* 
    22Plugin Name: Charlies content 
    3 Version: 2.1.b 
     3Version: auto 
    44Description: Charlies content is a global solution for none picture files. 
    55Plugin URI: http://piwigo.org/ext/extension_view.php?eid=119 
     
    2525define('CHARLIES_DIR' , basename(dirname(__FILE__))); 
    2626define('CHARLIES_PATH' , PHPWG_PLUGINS_PATH . CHARLIES_DIR . '/'); 
    27 define('CHARLIES_VER' , '2.1.b'); 
    2827$x = @file_get_contents( $conf['local_data_dir'].'/plugins/'.basename(dirname(__FILE__)).'.dat'); 
    2928if ($x!==false) $charlie = unserialize($x); 
     
    3534                array_push($infos, l10n('Your configuration configuration has been reset.')); 
    3635} 
    37 if (!isset($charlie['version']) or  $charlie['version'] != CHARLIES_VER)  
    38 { 
    39         $default = array( 
     36 
     37$default = array( 
    4038                        'autoload'                      => 1, 
    4139                        'autoplay'                      => 1, 
     
    9795                        'color16'                               => '#111111', 
    9896                ); 
    99         if (!isset($charlie['version'])) $charlie = $default; 
    100         else $charlie = array_merge( $default, $charlie ); 
     97        $charlie = array_merge( $default, $charlie ); 
    10198        if (!isset($charlie['FlvStreamer']))    $charlie['FlvStreamer'] = array('flv',);  
    10299        if (!isset($charlie['Flash']))                  $charlie['Flash'] = array('swf',);  
     
    109106        if (!isset($charlie['Archive']))                $charlie['Archive'] = array('zip','rar',);  
    110107        if (!isset($charlie['GPS']))                    $charlie['GPS'] = array('gpx',);  
    111         $charlie['version'] = CHARLIES_VER; 
    112108 
    113109        $dir = $conf['local_data_dir'].'/plugins/'; 
     
    116112        fwrite($file, serialize($charlie)); 
    117113        fclose( $file ); 
    118 } 
     114 
    119115  /* Note: Uppercase extensions are not requested */ 
    120116  /** 
Note: See TracChangeset for help on using the changeset viewer.