diff options
author | Amenadiel <amenadiel@gmail.com> | 2020-01-15 01:00:49 +0300 |
---|---|---|
committer | Amenadiel <amenadiel@gmail.com> | 2020-01-15 01:00:49 +0300 |
commit | d7fe9495f5f5cd716ae3eed21d2d87dfe4d44bd1 (patch) | |
tree | 5ff1c6950462d9c2f88e7848cadf2baa3d182b58 /src/controllers/BrowserController.php | |
parent | 0b3571deb5969172e3ed375a7cbc4f560812cc9f (diff) |
adds config key to enable debugger handlers
Diffstat (limited to 'src/controllers/BrowserController.php')
-rw-r--r-- | src/controllers/BrowserController.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/controllers/BrowserController.php b/src/controllers/BrowserController.php index a7b351cb..45bdd140 100644 --- a/src/controllers/BrowserController.php +++ b/src/controllers/BrowserController.php @@ -1,7 +1,7 @@ <?php /** - * PHPPgAdmin v6.0.0-RC1. + * PHPPgAdmin v6.0.0-RC2 */ namespace PHPPgAdmin\Controller; @@ -10,6 +10,8 @@ use PHPPgAdmin\Decorators\Decorator; /** * Base controller class. + * + * @package PHPPgAdmin */ class BrowserController extends BaseController { @@ -66,13 +68,15 @@ class BrowserController extends BaseController { $treedata = new \PHPPgAdmin\ArrayRecordSet([]); $reqvars = []; - + $action = Decorator::url('/src/views/servers'); + $branch = Decorator::url('/src/views/servers', $reqvars, ['action' => 'tree']); + // $this->dump($branch); $attrs = [ 'text' => 'Servers', 'icon' => 'Servers', 'is_root' => 'true', - 'action' => Decorator::url('/src/views/servers'), - 'branch' => Decorator::url('/src/views/servers', $reqvars, ['action' => 'tree']), + 'action' => $action, + 'branch' => $branch, ]; return $this->printTree($treedata, $attrs, 'server'); |