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/classes/ViewManager.php')
-rw-r--r--src/classes/ViewManager.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/classes/ViewManager.php b/src/classes/ViewManager.php
index e78a646c..49d2d7e7 100644
--- a/src/classes/ViewManager.php
+++ b/src/classes/ViewManager.php
@@ -154,6 +154,11 @@ class ViewManager extends Twig
$this->offsetSet('applangdir', $this->lang['applangdir']);
+ $this->offsetSet('icon', [
+ 'Refresh' => $this->icon('Refresh'),
+ 'Servers' => $this->icon('Servers'),
+ ]);
+
$this->offsetSet('appName', $c->get('settings')['appName']);
$_theme = $this->getTheme($this->conf, $this->misc->getServerInfo());
@@ -199,13 +204,23 @@ class ViewManager extends Twig
return $this->_reload_browser;
}
- public function maybeRenderIframes(Response $response, string $subject, string $query_string): ResponseInterface
+/**
+ * Undocumented function
+ *
+ * @param Response $response
+ * @param string $subject
+ * @param string $query_string
+ * @param string $template
+ * @return ResponseInterface
+ */
+ public function maybeRenderIframes(Response $response, string $subject, string $query_string,string $template='intro_view.twig')
{
$c = $this->getContainer();
$in_test = $this->offsetGet('in_test');
+ $includeJsTree = $this->offsetExists('includeJsTree')?$this->offsetGet('includeJsTree'):true;
- if ('1' === $in_test) {
+ if ('1' === $in_test||$includeJsTree) {
$className = self::getControllerClassName($subject);
$controller = new $className($c);
@@ -217,7 +232,7 @@ class ViewManager extends Twig
'headertemplate' => 'header.twig',
];
- return $this->render($response, 'iframe_view.twig', $viewVars);
+ return $this->render($response, $template, $viewVars);
}
/**