Use the router for transformation_overview.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
60f4c5651a
commit
2ca7148f6a
@ -265,6 +265,11 @@ if (isset($_GET['route']) || isset($_POST['route'])) {
|
||||
$routes->addRoute('GET', '/themes', function () {
|
||||
require_once ROOT_PATH . 'libraries/entry_points/themes.php';
|
||||
});
|
||||
$routes->addGroup('/transformation', function (RouteCollector $routes) {
|
||||
$routes->addRoute(['GET', 'POST'], '/overview', function () {
|
||||
require_once ROOT_PATH . 'libraries/entry_points/transformation/overview.php';
|
||||
});
|
||||
});
|
||||
$routes->addRoute(['GET', 'POST'], '/user_password', function () {
|
||||
require_once ROOT_PATH . 'libraries/entry_points/user_password.php';
|
||||
});
|
||||
|
||||
@ -29,7 +29,6 @@ class Core
|
||||
'index.php',
|
||||
'pdf_pages.php',
|
||||
'pdf_schema.php',
|
||||
'transformation_overview.php',
|
||||
'transformation_wrapper.php',
|
||||
];
|
||||
|
||||
|
||||
@ -11,14 +11,12 @@ use PhpMyAdmin\Controllers\TransformationOverviewController;
|
||||
use PhpMyAdmin\DatabaseInterface;
|
||||
use PhpMyAdmin\Response;
|
||||
|
||||
if (! defined('ROOT_PATH')) {
|
||||
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
global $containerBuilder;
|
||||
|
||||
require_once ROOT_PATH . 'libraries/common.inc.php';
|
||||
|
||||
/** @var Response $response */
|
||||
$response = $containerBuilder->get(Response::class);
|
||||
|
||||
@ -71,8 +71,7 @@
|
||||
{% trans 'Media type' %}
|
||||
</th>
|
||||
<th>
|
||||
<a href="transformation_overview.php
|
||||
{{- get_common() }}#transformation" title="
|
||||
<a href="{{ url('/transformation/overview') }}#transformation" title="
|
||||
{%- trans 'List of available transformations and their options' -%}
|
||||
" target="_blank">
|
||||
{% trans 'Browser display transformation' %}
|
||||
@ -83,7 +82,7 @@
|
||||
{{ show_hint('Please enter the values for transformation options using this format: \'a\', 100, b,\'c\'…<br>If you ever need to put a backslash ("\\") or a single quote ("\'") amongst those values, precede it with a backslash (for example \'\\\\xyz\' or \'a\\\'b\').'|trans) }}
|
||||
</th>
|
||||
<th>
|
||||
<a href="transformation_overview.php{{ get_common() }}#input_transformation"
|
||||
<a href="{{ url('/transformation/overview') }}#input_transformation"
|
||||
title="{% trans 'List of available transformations and their options' %}"
|
||||
target="_blank">
|
||||
{% trans 'Input transformation' %}
|
||||
|
||||
@ -26,7 +26,6 @@ class CoreTest extends PmaTestCase
|
||||
'index.php',
|
||||
'pdf_pages.php',
|
||||
'pdf_schema.php',
|
||||
'transformation_overview.php',
|
||||
'transformation_wrapper.php',
|
||||
];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user