Changeset 10993

Show
Ignore:
Timestamp:
01/16/11 22:30:47 (2 years ago)
Author:
p_lindheimer
Message:

adds get_conf_settings method re #4740

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/libraries/freepbx_conf.class.php

    r10987 r10993  
    335335      $attributes['type'] = $vars['type']; 
    336336    } 
     337    if (isset($vars['category']) && $vars['category'] == '' && (!isset($vars['module']) || $vars['module'] == '')) { 
     338      die_freepbx(_("You must set either a category or a module attribute")); 
     339    } 
    337340    if ($vars['type'] == CONF_TYPE_SELECT) { 
    338341      if (!isset($vars['options']) || $vars['options'] == '') {  
     
    375378    if ($commit) { 
    376379      $this->commit_conf_settings(); 
     380    } 
     381 
     382    function get_conf_settings() { 
     383      $this->db_conf_store; 
    377384    } 
    378385  }