Ignore:
Timestamp:
Nov 30, 2010, 10:45:56 AM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] cleanup

File:
1 edited

Legend:

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

    r7944 r7945  
    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() ;
    42 
    43                        
     41                $cl_conflit_parametres =         cl_conflit_Get_Options() ;                     
    4442                $theme=$user['theme'];
    4543               
     
    5351                                                'theme' => $theme  ,
    5452                                                'DEBUG' => $debug   ,
    55                                                 'CONFLIT_ROOT' => CONFLIT_PATH)
     53                                                'CONFLIT_PATH' => CONFLIT_PATH)
    5654                                                 );
    5755
     
    157155  global $cl_conflit_parametres;
    158156//=============================================================================
    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') ;
     157  $my_para=$cl_conflit_parametres;
    161158
     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') ;
    162161 
    163 return $cl_conflit_parametres;
     162 
     163return $my_para;
    164164}
    165165        /*
Note: See TracChangeset for help on using the changeset viewer.