Changeset 33039


Ignore:
Timestamp:
Jan 29, 2024, 2:57:34 PM (10 months ago)
Author:
ddtddt
Message:

[meta_og] add update

Location:
extensions/meta_og
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta_og/admin.php

    r33021 r33039  
    6565                $metaog['metaogimage']='';
    6666        }
    67         if($conf['mogshowpaa']==true){
     67        if(isset($conf['mogshowpaa']) and $conf['mogshowpaa']==true){
    6868        $tab_picture = listphotosmog();
    6969        $metaog['path']='';
  • extensions/meta_og/initadmin.php

    r33021 r33039  
    6060                $metaog['metaogimage']='';
    6161        }
    62         if($conf['mogshowpai']==true){
     62        if(isset($conf['mogshowpai']) and $conf['mogshowpai']==true){
    6363        $tab_picture = listphotosmog();
    6464         if (pwg_db_num_rows($tab_picture)){
  • extensions/meta_og/maintain.class.php

    r33021 r33039  
    5656   conf_update_param('mogshowpaa',''); 
    5757   }
     58  function update($old_version, $new_version, &$errors=array())
     59  {
     60if(!isset($conf['mogshowpai'])){if($conf['mogshowpa']==2 | $conf['mogshowpa']==4){$conf['mogshowpai']=true;}else{$conf['mogshowpai']=false;}}
     61if(!isset($conf['mogshowpaa'])){if($conf['mogshowpa']==3 | $conf['mogshowpa']==4){$conf['mogshowpaa']=true;}else{$conf['mogshowpaa']=false;}} 
     62  }
    5863
    5964  function uninstall()
Note: See TracChangeset for help on using the changeset viewer.