public function saveConfig($selfedit = "false") {
		$this->selfedit = $selfedit;
		
		if ($selfedit == "true") {
			$this->moufManager = MoufManager::getMoufManager();
		} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}
		
		$this->configManager = $this->moufManager->getConfigManager();
		$this->constantsList = $this->configManager->getMergedConstants();
		
		$constants = array();
		foreach ($this->constantsList as $key=>$def) {
			if ($def['defined'] == true && $def['type'] == 'bool') {
				$constants[$key] = (get($key)=="true")?true:false;
			} else {
				$constants[$key] = get($key);
			}
		}
		$this->configManager->setDefinedConstants($constants);
		
		header("Location: .?selfedit=".$selfedit);
	}