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:
authorFelipe Figueroa <amenadiel@gmail.com>2018-05-11 00:33:45 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-05-11 00:33:45 +0300
commit74f8dcf7961f4543874a30268e1fd869e1fbfd90 (patch)
tree2c2eac6dd6c04c9b79a2c9a018f9041272287d64 /src/controllers/SqlController.php
parentf4fff1d90777778576174c46338fd9f87869f6a5 (diff)
parametrize controller title to reduce duplication when calling printHeader
Diffstat (limited to 'src/controllers/SqlController.php')
-rw-r--r--src/controllers/SqlController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/controllers/SqlController.php b/src/controllers/SqlController.php
index 9be20ab5..27c530a0 100644
--- a/src/controllers/SqlController.php
+++ b/src/controllers/SqlController.php
@@ -17,6 +17,7 @@ class SqlController extends BaseController
public $subject = '';
public $start_time;
public $duration;
+ public $controller_title = 'strqueryresults';
/**
* Default method to render the controller according to the action parameter.
@@ -62,7 +63,7 @@ class SqlController extends BaseController
return $display_controller->render();
}
- $this->printHeader($this->lang['strqueryresults'], null, true, 'header_sqledit.twig');
+ $this->printHeader($this->headerTitle(), null, true, 'header_sqledit.twig');
$this->printBody();
$this->printTrail('database');
$this->printTitle($this->lang['strqueryresults']);
@@ -184,7 +185,7 @@ class SqlController extends BaseController
$rs = $data->conn->Execute($this->query);
- echo '<form method="post" id="sqlform" action="'.$_SERVER['REQUEST_URI'].'">';
+ echo '<form method="post" id="sqlform" action="' . $_SERVER['REQUEST_URI'] . '">';
echo '<textarea width="90%" name="query" id="query" rows="5" cols="100" resizable="true">';
echo htmlspecialchars($this->query);