1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-23 18:29:15 +03:00

6 Commits

Author SHA1 Message Date
Kamil Tekiela
6846c21199 Improve error template
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-05-12 19:02:04 +01:00
Kamil Tekiela
ec6e1634c5 Don't display Backtrace if there isn't one
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-01-29 18:47:01 +00:00
Maurício Meneghini Fauth
90ee00efd5 Create the 'pma' global variable for Twig templates
Creates the Twig\PmaGlobalVariable class to handle the 'pma' Twig global
variable.

The idea of this global variable is to automatically inject in all
templates some useful information.

For now it only includes `pma.version` to get the phpMyAdmin version
and `pma.text_dir` to get the text direction ('ltr' or 'rtl').

Adding new variables to the `pma` global variable should be done with
caution.

- https://twig.symfony.com/doc/3.x/advanced.html#globals

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-09 20:30:48 -03:00
Maurício Meneghini Fauth
b1cb1c8129 Replace trans tag with the t function in templates
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-25 14:17:52 -03:00
Maurício Meneghini Fauth
b6eda64b43 Replace trans filter with the t function for templates
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-25 14:10:42 -03:00
Maurício Meneghini Fauth
b2b53c6e18 Move ./templates directory to ./resources/templates
- Related to https://github.com/phpmyadmin/phpmyadmin/issues/18512

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2023-10-17 13:57:07 -03:00