Ignore:
Timestamp:
Nov 30, 2010, 9:28:28 AM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] fix bug cl_conflit/autosize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/cl_conflit/conflit.inc.php

    r7914 r7944  
    3939                $template->set_filenames(array('cl_conflit_init'=>$my_path. "template/conflit.tpl" ) );
    4040                $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    41                 $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;                     
     41$cl_conflit_parametres =         cl_conflit_Get_Options() ;
     42
     43                       
    4244                $theme=$user['theme'];
    4345               
    4446                $template->assign(
    4547                                                array(
     48                                                'cl_conflit_parametres' => $cl_conflit_parametres ,
     49                                                'cl_plugins' => $cl_plugin ,
    4650                                                'cl_version' => $cl_plugin['version'] ,
    4751                                                'name' => $cl_plugin['name'] ,
    48                                                 'cl_conflit' => $cl_conflit  ,
     52                                                 
    4953                                                'theme' => $theme  ,
    5054                                                'DEBUG' => $debug   ,
     
    6670                        $my_path = dirname(__FILE__).'/';
    6771                        $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    68                         $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
     72                         
    6973                        $theme=$user['theme'];
    7074
     
    7478                                                'name' => $cl_plugin['name'] ,
    7579                                                'ma_page' =>    $page['body_id'],
    76                                                 'cl_conflit' => $cl_conflit  ,
     80                                                 
    7781                                                'theme' => $theme  ,
    7882                                                'DEBUG' => $debug   ,
     
    102106                        $my_path = dirname(__FILE__).'/';
    103107                        $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    104                         $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
     108                         
    105109                        $theme=$user['theme'];
    106110
     
    153157  global $cl_conflit_parametres;
    154158//=============================================================================
    155 $cl_conflit_parametres->query =(isset($_POST['query'])) ? $_POST['query'] : ((isset($cl_conflit_parametres->query )) ? $cl_conflit_parametres->query : '' ) ;
    156 $cl_conflit_parametres->type=(isset($_POST['type']))? $_POST['type']: ((isset($cl_conflit_parametres->type)) ? $cl_conflit_parametres->type:  '') ;
     159$cl_conflit_parametres->query =(isset($_POST['query'])) ? $_POST['query'] : ((isset($cl_conflit_parametres->query )) ? $cl_conflit_parametres->query : 'Qt' ) ;
     160$cl_conflit_parametres->type=(isset($_POST['type']))? $_POST['type']: ((isset($cl_conflit_parametres->type)) ? $cl_conflit_parametres->type:  'Ty') ;
    157161
    158162 
Note: See TracChangeset for help on using the changeset viewer.