Commit Graph

122633 Commits

Author SHA1 Message Date
Petr Duda
dfce78321e
Translated using Weblate (Czech)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/cs/
Signed-off-by: Petr Duda <petrduda@seznam.cz>
2021-11-23 19:44:58 +01:00
Maurício Meneghini Fauth
4001460066
Merge branch 'QA_5_1'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-21 15:00:06 -03:00
Maurício Meneghini Fauth
51a9540db4
Merge pull request #17198 from mauriciofauth/nav-db-select-fix
Fix db selection when nav tree is disabled
2021-11-21 12:22:46 -03:00
Maurício Meneghini Fauth
d7ced91ae2
Fix db selection when nav tree is disabled
$cfg['ShowDatabasesNavigationAsTree'] = false;

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-21 12:08:21 -03:00
phpMyAdmin bot
06abe1688c Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2021-11-21 00:11:19 +00:00
Maurício Meneghini Fauth
b65151fa8c
Convert connection collation select to Bootstrap
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-19 17:04:03 -03:00
Maurício Meneghini Fauth
7afaaaf672
Merge pull request #17195 from mauriciofauth/scrutinizer-ci-fix
Remove phpMyAdmin repo from `composer.json` on Scrutinizer CI

Fixes #17167
2021-11-19 15:04:57 -03:00
Maurício Meneghini Fauth
4f1de3e338
Remove phpMyAdmin repo from composer.json on Scrutinizer CI
Scrutinizer CI builds are failing because its CA certificates are outdated.

Bumps Node to v12

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-19 14:48:00 -03:00
Kamil Tekiela
51f4017b32
Refactor destroy controller (#17194)
* Remove redundant conditions

They were always true. First, the variable is set to -1.
If the variable is -1, then set it to Message.
If the variable is Message then set the JSON array. All of this is
redundant.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* $sqlQuery is not used anywhere

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Enforce $selected to be an array

I can't remove it as it is a global. Previously, it was set to a POST
variable. Since we validate that the variable is set and is not null,
we can use the value from $params. If we validate that it's also an
array we can replace for loop with foreach.
There is no passing by reference, so this change should be safe.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Replace $rebuildDatabaseList with input validation

The validation message says 'No databases selected.' so I assume that
we should check that we actually got at least one entry in the list.
If that is true, then the $rebuildDatabaseList is not needed and the
condition redundant.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* drop_selected_dbs is always set and is redundant

I am not sure if this is necessary. The AJAX request sends a value of "1"
but the code doesn't really do anything with it other than checking if
it is actually set. Is there some other path possible?

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Flatten the array with a single element

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Remove redundant isset

The variable is set, so !isset === is_null. Why check for null if we can
check just for !is_array.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Update psalm-baseline.xml

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Adhere to the coding standard

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2021-11-19 14:26:04 -03:00
Maurício Meneghini Fauth
e91d258035
Add button to view all themes
Related to 2cdce1d6fb

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-19 12:40:37 -03:00
Maurício Meneghini Fauth
b86b70d639
Improve type definitions of Scripts class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-18 15:25:00 -03:00
Maurício Meneghini Fauth
857a9d3337
Remove unnecessary @var annotations
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-18 12:15:30 -03:00
Maurício Meneghini Fauth
090d2eece7
Fix some issues found by PHPStan
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-16 15:11:57 -03:00
Maurício Meneghini Fauth
0d81b2166a
Add test for Sql::executeQueryAndSendQueryResponse
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-15 19:51:16 -03:00
Maurício Meneghini Fauth
98e70c6ae6
Suppress some Psalm errors in ImportXml plugin class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-15 16:06:05 -03:00
Maurício Meneghini Fauth
7fc8c4bd15
Remove @var annotation in Table::getColumnGenerationExpression
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-15 13:36:47 -03:00
Maurício Meneghini Fauth
f84b1fc39d
Merge pull request #17184 from mauriciofauth/relation-parameters-vo
Create the `RelationParameters` value object
2021-11-14 19:21:13 -03:00
Maurício Meneghini Fauth
b2a51c4d84
Create the RelationParameters value object
Replaces the $cfgRelation array with the RelationParameters value
object.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-14 18:22:36 -03:00
phpMyAdmin bot
1c7d9a64b8 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2021-11-14 00:11:00 +00:00
Maurício Meneghini Fauth
43867f262d
Fix some errors errors found by PHPStan
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-11 11:16:13 -03:00
Maurício Meneghini Fauth
c22af32b7b
Merge pull request #17183 from mauriciofauth/backquote-array
Remove array support from `Util::backquote`
2021-11-10 20:48:40 -03:00
Maurício Meneghini Fauth
a835d7cfcc
Remove array support from Util::backquote
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-10 19:33:09 -03:00
Maurício Meneghini Fauth
fc01048c2e
Fix SessionCacheTest's failing test
https://github.com/phpmyadmin/phpmyadmin/runs/4134608655#step:6:617

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-09 15:31:02 -03:00
Maurício Meneghini Fauth
3ec311028b
Fix some errors found by Psalm
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-08 00:52:30 -03:00
Maurício Meneghini Fauth
c5c790051b
Merge branch 'QA_5_1'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-07 22:13:07 -03:00
Joel Mellon
90d6324625
update privileges.rst button/link names to match phpMyAdmin v5.1.1 (#17180)
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Signed-off-by: Joel Mellon <joelgmellon@gmail.com>
2021-11-07 22:11:04 -03:00
Maurício Meneghini Fauth
1a6641b2da
Merge pull request #17181 from mauriciofauth/table-structure-more-button
Use Bootstrap's dropdown for table structure's More button
2021-11-07 22:07:42 -03:00
Maurício Meneghini Fauth
b6ea050aef
Use Bootstrap's dropdown for table structure's More button
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-07 16:27:56 -03:00
Maurício Meneghini Fauth
d719fd9f53
Update Psalm and PHPStan baselines
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-07 16:01:13 -03:00
phpMyAdmin bot
a2014e2674 Update po files
[ci skip]

Signed-off-by: phpMyAdmin bot <bot@phpmyadmin.net>
2021-11-07 00:10:49 +00:00
Istiak Ferdous
a99fb0255a
Translated using Weblate (Bengali)
Currently translated at 66.2% (2260 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/bn/
Signed-off-by: Istiak Ferdous <hello@istiakferdous.com>
2021-11-05 04:35:36 +01:00
Tymofii Lytvynenko
36217d60c3
Translated using Weblate (Ukrainian)
Currently translated at 94.3% (3217 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/uk/
Signed-off-by: Tymofii Lytvynenko <till.svit@gmail.com>
2021-11-05 04:35:35 +01:00
Tymofii Lytvynenko
0e73c55cee
Translated using Weblate (Ukrainian)
Currently translated at 95.7% (3240 of 3384 strings)

[ci skip]

Translation: phpMyAdmin/5.1
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-1/uk/
Signed-off-by: Tymofii Lytvynenko <till.svit@gmail.com>
2021-11-05 04:33:26 +01:00
Istiak Ferdous
39e1636d26
Translated using Weblate (Bengali)
Currently translated at 67.1% (2271 of 3384 strings)

[ci skip]

Translation: phpMyAdmin/5.1
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-1/bn/
Signed-off-by: Istiak Ferdous <hello@istiakferdous.com>
2021-11-05 04:33:25 +01:00
Maurício Meneghini Fauth
68a6846924
Fix ChangePasswordTest failing Selenium test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-03 13:50:20 -03:00
Maurício Meneghini Fauth
f820e2a970
Remove the unused Theme::cssFiles property
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-03 09:21:43 -03:00
Masahiro Fujimoto
ffd2068753
Translated using Weblate (Japanese)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/ja/
Signed-off-by: Masahiro Fujimoto <mfujimot@gmail.com>
2021-11-03 06:57:27 +01:00
Maurício Meneghini Fauth
1fd612f9e7
Bump Jest version to 27.3.1
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-02 15:08:19 -03:00
Maurício Meneghini Fauth
bd95eb7c20
Merge branch 'QA_5_1'
- Bumps Bootstrap to v5.1.3

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-02 14:36:45 -03:00
Maurício Meneghini Fauth
3f279e47ea
Upgrade JavaScript dependencies
- Bumps Bootstrap to v4.6.1
- Bumps CodeMirror to v5.63.3
- Bumps OpenLayers to v6.9.0

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-02 13:01:08 -03:00
Maurício Meneghini Fauth
451563c823
Fix DbiMysqliTest::testStoreResult test for PHP 8.1
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-02 11:48:04 -03:00
Maurício Meneghini Fauth
0fbed5e6bd
Merge branch 'QA_5_1'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-01 20:04:15 -03:00
Domen
7e7f151708
Translated using Weblate (Slovenian)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/sl/
Signed-off-by: Domen <mitenem@outlook.com>
2021-11-01 23:37:57 +01:00
Olivier Humbert
1c556db06a
Translated using Weblate (French)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/fr/
Signed-off-by: Olivier Humbert <trebmuh@tuxfamily.org>
2021-11-01 23:37:56 +01:00
dingo thirteen
c323b9bebf
Translated using Weblate (Dutch)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/nl/
Signed-off-by: dingo thirteen <dingo13@d404.nl>
2021-11-01 23:37:56 +01:00
Kristjan Räts
29780214bf
Translated using Weblate (Estonian)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/et/
Signed-off-by: Kristjan Räts <kristjanrats@gmail.com>
2021-11-01 23:37:55 +01:00
Edgar Pereira
f2fb87f385
Translated using Weblate (Portuguese)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/pt/
Signed-off-by: Edgar Pereira <artifex@sapo.pt>
2021-11-01 23:37:54 +01:00
SC
693b21ddcf
Translated using Weblate (Portuguese)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/pt/
Signed-off-by: SC <lalocas@protonmail.com>
2021-11-01 23:37:54 +01:00
Oğuz Ersen
e1a6920e50
Translated using Weblate (Turkish)
Currently translated at 100.0% (3410 of 3410 strings)

[ci skip]

Translation: phpMyAdmin/Development
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/master/tr/
Signed-off-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-11-01 23:37:53 +01:00
SC
978e5a2348
Translated using Weblate (Portuguese)
Currently translated at 99.6% (3372 of 3384 strings)

[ci skip]

Translation: phpMyAdmin/5.1
Translate-URL: https://hosted.weblate.org/projects/phpmyadmin/5-1/pt/
Signed-off-by: SC <lalocas@protonmail.com>
2021-11-01 23:36:39 +01:00