Include values in /etc/zm files in viewByName
This commit is contained in:
parent
4f0c56d731
commit
e04eac57ae
|
@ -56,9 +56,15 @@ class ConfigsController extends AppController {
|
|||
public function viewByName($name = null) {
|
||||
$config = $this->Config->findByName($name, array('fields' => 'Value'));
|
||||
|
||||
if (!$config) {
|
||||
if ( !$config ) {
|
||||
global $configvals;
|
||||
if ( $configvals[$name] ) {
|
||||
$config = array( 'Config'=>array('Value'=>$configvals[$name]) );
|
||||
} else {
|
||||
throw new NotFoundException(__('Invalid config'));
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
$this->set(array(
|
||||
'config' => $config['Config'],
|
||||
|
|
Loading…
Reference in New Issue