Changeset 6104

Show
Ignore:
Timestamp:
06/01/07 19:49:56 (1 year ago)
Author:
tarjei
Message:

Added mgd_cache_invalidate to the call so the user will see the changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.settings/config/schemadb_config.inc

    r5614 r6104  
    205205                    false    => 'indexer_backend_none', 
    206206                    'xmltcp' => 'indexer_backend_xmltcp', 
     207                    'solr' => 'Solr indexer', 
    207208                ), 
    208209            ), 
  • trunk/midcom/midcom.admin.settings/editor.php

    r4746 r6104  
    159159                if ($this->_codeinit->update()) 
    160160                { 
     161                    mgd_cache_invalidate(); 
    161162                    $_MIDCOM->uimessages->add($_MIDCOM->i18n->get_string('host configuration', 'midcom.admin.settings'),  
    162                                                 $_MIDCOM->i18n->get_string('settings saved successfully', 'midcom.admin.settings'),  
     163                    $_MIDCOM->i18n->get_string('settings saved successfully', 'midcom.admin.settings') 
     164                    . $this->_codeinit->id,  
    163165                                                'ok'); 
    164166                } 
     
    221223    { 
    222224        $hostconfig = new midcom_helper_hostconfig($this->_config_storage); 
     225        $this->errors = ""; 
    223226                
    224227        foreach ($this->_controller->formmanager->form->_submitValues as $key => $val) 
    225228        { 
    226             if (   array_key_exists($key, $GLOBALS['midcom_config']) 
    227                 && $GLOBALS['midcom_config'][$key] != $val) 
    228             { 
    229                 $hostconfig->set($key, $val); 
    230             } 
    231         } 
     229            if (   array_key_exists($key, $GLOBALS['midcom_config'])) { 
     230                if ($GLOBALS['midcom_config'][$key] != $val) { 
     231                    $hostconfig->set($key, $val); 
     232                } 
     233             
     234            } else { 
     235            //$this->errors .=" Could not ser: $key, $val<br/>"; 
     236            }  
     237        } 
     238 
    232239        return $hostconfig->get_code_init('midcom.admin.settings'); 
    233240    }