Changeset 26359


Ignore:
Timestamp:
Dec 30, 2013, 4:50:11 PM (10 years ago)
Author:
ddtddt
Message:

[extensions] - meta - remove adviser / function for conf

Location:
extensions/meta
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta/admin/admin.php

    r24449 r26359  
    8484
    8585//edit meta
    86 if (isset($_POST['submitchoixmeta']) and is_numeric($_POST['metalist']) and (!$_POST['metalist'])==0 and !is_adviser())
     86if (isset($_POST['submitchoixmeta']) and is_numeric($_POST['metalist']) and (!$_POST['metalist'])==0)
    8787        {
    8888$lire=$_POST['metalist'];
  • extensions/meta/maintain.inc.php

    r24393 r26359  
    2121        $result = pwg_query($query);
    2222
    23   if (empty($conf['contactmeta']))
     23  if (!isset($conf['contactmeta']))
    2424  {
    25         $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contactmeta",",","contactmeta");';
    26     pwg_query($query);
     25        conf_update_param('contactmeta', '');
    2726  }
    2827 
     
    202201  if (empty($conf['contactmeta']))
    203202  {
    204         $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contactmeta",",","contactmeta");';
    205     pwg_query($query);
     203        conf_update_param('contactmeta', '');
    206204  }
    207205 
     
    241239    pwg_query($q);
    242240       
    243         $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="contactmeta" LIMIT 1;';
    244     pwg_query($q);
     241        conf_delete_param('contactmeta');
    245242       
    246243        $q = 'DROP TABLE ' . $prefixeTable . 'meta_cat;';
Note: See TracChangeset for help on using the changeset viewer.