Ignore:
Timestamp:
Jun 6, 2011, 2:08:27 PM (13 years ago)
Author:
cljosse
Message:

[extensions] set_plugins compatiblity with 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/set_plugins/include/affiche.php

    r11100 r11249  
    1818
    1919$set=isset($_POST['set'])?$_POST['set']:"true";
     20 $list="test1,test2,test2";
    2021
    21 
    22   $template->assign( array(
     22  $template->assign( array( 'list'=>$list,
    2323                   'nb' => isset($_POST['nb'])?$_POST['nb']:$nb,
    2424                   'state' => $state ,
     
    2727                        'cl_version' => $cl_set_plugins_plugin['version'] ,
    2828                        'name' => $cl_set_plugins_plugin['name'] ,
    29                         'Version_pwg' => PHPWG_VERSION
     29                        'Version_pwg' => PHPWG_VERSION,
     30                        'SET_PLUGINS_PATH' => SET_PLUGINS_PATH
    3031                                                                                        )
    3132                                                                        );               
     
    4142            $action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.get_pwg_token();
    4243 //=======================================================
     44$liste_plugins = array();
    4345
    44 
    45 
    46 $liste_plugins = array();
    4746foreach($liste as $liste_id => $liste_plugin) {
    4847    $liste_plugins[]=   $liste_plugin['plugin'] ;
    4948}
    5049
     50
     51
    5152$liste_tpl=array();
    5253//==========================================================
    53 foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) {
    54     
     54foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) {   
     55//==== test si $plugin_id fait partie de $liste_plugins ============== 
    5556    $key = array_search($plugin_id, $liste_plugins,false);
    5657
     
    7778        $tpl_plugin['STATE'] = 'uninstalled';
    7879      }
    79 
     80   
     81     if(isset($_SESSION['merged_extensions']))
    8082      if (isset($fs_plugin['extension']) and in_array($fs_plugin['extension'], $_SESSION['merged_extensions']))
    8183      {
Note: See TracChangeset for help on using the changeset viewer.