Ignore:
Timestamp:
Oct 1, 2014, 5:38:21 PM (10 years ago)
Author:
gbo
Message:

version 2.7.C by default php 5.2 does not support "array_replace"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/admin/frame.php

    r29842 r29855  
    1717                // -------- Save --
    1818                if ( isset($_POST['save']) )
    19                          {      $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $param_llgbo_frame);
     19                         {      // $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $param_llgbo_frame);
     20                         $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'], $param_llgbo_frame);
    2021                                conf_update_param('LLGBO2_settings',$conf['LLGBO2']);
    2122                                array_push($page['infos'], l10n('Information data registered in database'));
     
    2526// -------- Preview  --
    2627        if ( isset($_POST['preview']) ) 
    27                 {   $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $param_llgbo_frame);       }
     28                {        $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'], $param_llgbo_frame);
     29                        // $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $param_llgbo_frame);
     30                        }
    2831               
    2932// -------- Reset --
    3033        if ( isset($_POST['reset']) ) 
    31                 {   $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $default_frame);   }
     34                {  $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'], $default_frame); 
     35                //$conf['LLGBO2'] = array_replace($conf['LLGBO2'], $default_frame);
     36                }
    3237       
    3338// -------- Preview  sample -- 
     
    4146                        }
    4247                $s = $_POST['sample'];
    43                 $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $samples[$s]);
     48                $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'], $samples[$s]);
     49                // $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $samples[$s]);
    4450                 
    4551                }
Note: See TracChangeset for help on using the changeset viewer.