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 ...@@ -238,12 +238,10 @@ class AdminController extends AbstractBase
*/ */
public function enableautoconfigAction() public function enableautoconfigAction()
{ {
/* TODO $configFile = ConfigReader::getConfigPath('config.ini');
$configDir = LOCAL_OVERRIDE_DIR . '/application/configs'; $writer = new \VuFind\Config\Writer($configFile);
$configFile = $configDir . '/config.ini';
$writer = new VF_Config_Writer($configFile);
$writer->set('System', 'autoConfigure', 1); $writer->set('System', 'autoConfigure', 1);
if (@$writer->save()) { if ($writer->save()) {
$this->flashMessenger()->setNamespace('info') $this->flashMessenger()->setNamespace('info')
->addMessage('Auto-configuration enabled.'); ->addMessage('Auto-configuration enabled.');
...@@ -257,8 +255,7 @@ class AdminController extends AbstractBase ...@@ -257,8 +255,7 @@ class AdminController extends AbstractBase
. $configFile . '.' . $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