Ignore:
Timestamp:
Dec 18, 2010, 12:33:20 PM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] fix bug whith user $.post


File:
1 edited

Legend:

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

    r7945 r8187  
    3939                $template->set_filenames(array('cl_conflit_init'=>$my_path. "template/conflit.tpl" ) );
    4040                $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    41                 $cl_conflit_parametres =         cl_conflit_Get_Options() ;                     
     41$cl_conflit_parametres =         cl_conflit_Get_Options() ;
     42
     43                       
    4244                $theme=$user['theme'];
    4345               
     
    5153                                                'theme' => $theme  ,
    5254                                                'DEBUG' => $debug   ,
    53                                                 'CONFLIT_PATH' => CONFLIT_PATH)
     55                                                'CONFLIT_ROOT' => CONFLIT_PATH)
    5456                                                 );
    5557
     
    155157  global $cl_conflit_parametres;
    156158//=============================================================================
    157   $my_para=$cl_conflit_parametres;
     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') ;
    158161
    159 $my_para->query =(isset($_POST['query'])) ? $_POST['query'] : ((isset($my_para->query )) ? $my_para->query : 'Qt' ) ;
    160 $my_para->type=(isset($_POST['type']))? $_POST['type']: ((isset($my_para->type)) ? $my_para->type:  'Ty') ;
    161162 
    162  
    163 return $my_para;
     163return $cl_conflit_parametres;
    164164}
    165165        /*
Note: See TracChangeset for help on using the changeset viewer.