diff options
author | ffflabs <amenadiel@gmail.com> | 2020-09-11 10:48:07 +0300 |
---|---|---|
committer | ffflabs <amenadiel@gmail.com> | 2020-10-19 20:03:43 +0300 |
commit | 78b76c8435398cfab1e80fdc29f23f49c2992c74 (patch) | |
tree | fc78d27569b4e414cddabfc7c3caacf75d4255cb /src/controllers/HistoryController.php | |
parent | 7ab62d1cdd5e5e0122e2d91c536bf25eb1d32ad6 (diff) |
github_action
adds reviewdog, preparing more checks
adds reviewdog, preparing more checks
adds reviewdog, preparing more checks
adds reviewdog, preparing more checks
containerutils now extends Slim\Container
adds PR ckecks for psalm, phpstan, phpcs and phpmd
preparing next deploy
removes psalm from scrutinizer
next attempt at github actions
removing usage of Kint for githu actions
cache for style checks
cache for style checks
cache for style checks
cache for style checks
cache for style checks
cache for style checks
after csfixer
after csfixer
update baselines
add rector check
remove usage of 'with(...)' from js scripts
tiny syntax improvements
use flash messages to check for treejs refresh being set
first POC of messaging API to propagate query requests and jstree refresh instructions
instruction to refresh jsTree must be passed to the view manager, not to Misc
adds rector github action
ignore rector.php when running code style checks and transforms
typo fix
formatting of theme css
normalize composer
passing static analysis
passing tests
passing tests
passing tests
Diffstat (limited to 'src/controllers/HistoryController.php')
-rw-r--r-- | src/controllers/HistoryController.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/controllers/HistoryController.php b/src/controllers/HistoryController.php index f26d08b5..d985f3e4 100644 --- a/src/controllers/HistoryController.php +++ b/src/controllers/HistoryController.php @@ -75,7 +75,7 @@ class HistoryController extends BaseController // Bring to the front always echo '<body onload="window.focus();">' . \PHP_EOL; - echo '<form action="' . self::SUBFOLDER . '/src/views/history" method="post">' . \PHP_EOL; + echo '<form action="' . \containerInstance()->subFolder . '/src/views/history" method="post">' . \PHP_EOL; $this->printConnection('history'); echo '</form><br />'; @@ -88,7 +88,6 @@ class HistoryController extends BaseController if (isset($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']])) { $history = new \PHPPgAdmin\ArrayRecordSet($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']]); - //Kint::dump($history); $columns = [ 'query' => [ 'title' => $this->lang['strsql'], @@ -200,7 +199,7 @@ class HistoryController extends BaseController echo "<p>{$this->lang['strconfdelhistory']}</p>" . \PHP_EOL; echo '<pre>', \htmlentities($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']][$qid]['query'], \ENT_QUOTES, 'UTF-8'), '</pre>'; - echo '<form action="' . self::SUBFOLDER . '/src/views/history" method="post">' . \PHP_EOL; + echo '<form action="' . \containerInstance()->subFolder . '/src/views/history" method="post">' . \PHP_EOL; echo '<input type="hidden" name="action" value="delhistory" />' . \PHP_EOL; echo "<input type=\"hidden\" name=\"queryid\" value=\"{$qid}\" />" . \PHP_EOL; echo $this->view->form; @@ -223,7 +222,7 @@ class HistoryController extends BaseController echo "<h3>{$this->lang['strclearhistory']}</h3>" . \PHP_EOL; echo "<p>{$this->lang['strconfclearhistory']}</p>" . \PHP_EOL; - echo '<form action="' . self::SUBFOLDER . '/src/views/history" method="post">' . \PHP_EOL; + echo '<form action="' . \containerInstance()->subFolder . '/src/views/history" method="post">' . \PHP_EOL; echo '<input type="hidden" name="action" value="clearhistory" />' . \PHP_EOL; echo $this->view->form; echo "<input type=\"submit\" name=\"yes\" value=\"{$this->lang['stryes']}\" />" . \PHP_EOL; |