Changeset 26358 for extensions/title/maintain.inc.php
- Timestamp:
- Dec 30, 2013, 4:39:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/title/maintain.inc.php
r22724 r26358 67 67 if (empty($conf['contacttitle'])) 68 68 { 69 $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contacttitle","","contacttitle");'; 70 pwg_query($query); 69 conf_update_param('contacttitle', ''); 71 70 } 72 71 … … 84 83 { 85 84 global $conf, $prefixeTable; 86 if ( empty($conf['contacttitle']))85 if (!isset($conf['contacttitle'])) 87 86 { 88 $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contacttitle","","contacttitle");'; 89 pwg_query($query); 87 conf_update_param('contacttitle', ''); 90 88 } 91 89 … … 116 114 pwg_query($q); 117 115 118 $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="contacttitle" LIMIT 1;';119 pwg_query($q); 116 conf_delete_param('contacttitle'); 117 120 118 } 121 119
Note: See TracChangeset
for help on using the changeset viewer.