Allow format=sql to everybody right now
* we have no "devel" environment any more * we might allow this based on permissions
This commit is contained in:
parent
ce20a1e549
commit
5dbf1e48a7
modules/monitoring/library/Monitoring
|
@ -112,9 +112,7 @@ class Controller extends ActionController
|
|||
$this->_helper->viewRenderer($this->compactView);
|
||||
}
|
||||
|
||||
|
||||
if ($this->_getParam('format') === 'sql'
|
||||
&& IcingaConfig::app()->global->get('environment', 'production') === 'development') {
|
||||
if ($this->_getParam('format') === 'sql') {
|
||||
echo '<pre>'
|
||||
. htmlspecialchars(wordwrap($query->dump()))
|
||||
. '</pre>';
|
||||
|
|
Loading…
Reference in New Issue