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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/title/maintain.inc.php

    r22724 r26358  
    6767  if (empty($conf['contacttitle']))
    6868  {
    69         $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contacttitle","","contacttitle");';
    70     pwg_query($query);
     69        conf_update_param('contacttitle', '');
    7170  }
    7271
     
    8483{
    8584    global $conf, $prefixeTable;
    86   if (empty($conf['contacttitle']))
     85  if (!isset($conf['contacttitle']))
    8786  {
    88         $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contacttitle","","contacttitle");';
    89     pwg_query($query);
     87        conf_update_param('contacttitle', '');
    9088  }
    9189 
     
    116114    pwg_query($q);
    117115       
    118         $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="contacttitle" LIMIT 1;';
    119     pwg_query($q);
     116        conf_delete_param('contacttitle');
     117
    120118}
    121119
Note: See TracChangeset for help on using the changeset viewer.