Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/router.php')
-rw-r--r--src/router.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/router.php b/src/router.php
index 144c7248..c3d707c1 100644
--- a/src/router.php
+++ b/src/router.php
@@ -13,7 +13,8 @@ $app->get('/status', function (
/* @scrutinizer ignore-unused */
array $args
) {
- phpinfo();
+ \phpinfo();
+
return;
//dump($this->get('settings')->all());
return $response
@@ -131,13 +132,11 @@ $app->get('/{subject:\w+}[/{server_id}]', function (
\Slim\Http\Response $response,
/* @scrutinizer ignore-unused */
array $args
-
) {
- $subject=$args['subject']??'intro';
- $server_id=$args['server_id']??$request->getQueryParam('server');
- //ddd($subject, $server_id);
+ $subject = $args['subject'] ?? 'intro';
+ $server_id = $args['server_id'] ?? $request->getQueryParam('server');
+ //ddd($subject, $server_id);
$_server_info = $this->misc->getServerInfo();
-
//$this->utils->prtrace($_server_info);