The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit f5160d21 authored by Demian Katz's avatar Demian Katz
Browse files

Implemented action to enable auto-config.

parent bd560338
No related merge requests found
......@@ -238,12 +238,10 @@ class AdminController extends AbstractBase
*/
public function enableautoconfigAction()
{
/* TODO
$configDir = LOCAL_OVERRIDE_DIR . '/application/configs';
$configFile = $configDir . '/config.ini';
$writer = new VF_Config_Writer($configFile);
$configFile = ConfigReader::getConfigPath('config.ini');
$writer = new \VuFind\Config\Writer($configFile);
$writer->set('System', 'autoConfigure', 1);
if (@$writer->save()) {
if ($writer->save()) {
$this->flashMessenger()->setNamespace('info')
->addMessage('Auto-configuration enabled.');
......@@ -257,8 +255,7 @@ class AdminController extends AbstractBase
. $configFile . '.'
);
}
return $this->_forward('Config');
*/
return $this->forwardTo('Admin', 'Config');
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment