Changeset 26358


Ignore:
Timestamp:
12/30/13 16:39:33 (5 years ago)
Author:
ddtddt
Message:

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

Location:
extensions/title
Files:
2 edited

Legend:

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

    r22678 r26358  
    8585$template->assign('titlepagelistT', $titlepagelistT); 
    8686 
    87 if (isset($_POST['subtitlespecialET']) and (!$_POST['titlelist'])==0 and !is_adviser()) 
     87if (isset($_POST['subtitlespecialET']) and (!$_POST['titlelist'])==0) 
    8888        { 
    8989$lire=$_POST['titlelist']; 
     
    110110        } 
    111111 
    112 if (isset($_POST['subtitlespecial']) and !is_adviser()) 
     112if (isset($_POST['subtitlespecial'])) 
    113113        { 
    114114        $query = ' 
  • 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.