1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 08:58:20 +01:00
phorge-phorge/src/applications/people
Andre Klapper e2bec4c1f5 Improve messages when no image formats are supported (due to GD not installed)
Summary:
When GD is not installed, trying to set a custom image for a project/blog/repository/user/etc displays unhelpful error messages (`This server only supports these image formats: .` and `Supported formats: `) due to the array of supported image formats being empty.

Display clearer messages instead.

Closes T15720

Test Plan: Do not have php-gd installed, go to `/project/manage/1/`, take a look at the string below the "Upload Picture" button, select {nav icon=picture, name=Edit Picture} in the sidebar, select `Custom: Choose Icon and Color...`, `Choose Background Color` and `Choose Icon`, then click the `Save Image` button. Also try to upload a custom image and look at the error message.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15720

Differential Revision: https://we.phorge.it/D25525
2024-02-13 17:06:57 +01:00
..
application Add a test to verify that all routing maps are plausibly valid, and remove some dead routes 2020-02-14 18:06:24 -08:00
cache Fix PHP 8.1 "strlen(null)" and "explode()" exceptions which block rendering Administrator Account Creation page 2023-05-19 16:59:41 +02:00
capability Add a "Can Disable Users" capability to the "People" application 2018-08-27 08:01:27 -07:00
conduit Deprecate "user.enable" and "user.disable" API methods, redefine them in terms of "user.edit" 2018-08-27 08:00:48 -07:00
config Config User Extra Fields: link to the doc (like Maniphest) 2024-01-14 15:39:45 +01:00
controller Improve messages when no image formats are supported (due to GD not installed) 2024-02-13 17:06:57 +01:00
customfield Hide "Availability" and "Calendar" on user profiles for disabled users 2019-03-28 17:24:35 -07:00
editor Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
engine Add Revisions to User Profiles 2017-05-21 09:24:37 -07:00
engineextension Render user hovercards with context information about their ability to see the context object 2021-02-13 13:37:37 -08:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
guidance Add a bunch of Phacility-specific code to the upstream, thinly veiled as generic code 2016-11-15 09:11:22 -08:00
icon Add additional icons for User Profiles 2016-01-31 20:09:06 +00:00
lipsum Make bin/lipsum generate hanldle generator keys and arguments more clearly 2017-02-27 09:09:28 -08:00
mail Fix PHP 8.1 "strlen(null)" exceptions which block rendering user page after creation with Welcome Email enabled 2023-05-10 10:28:33 +02:00
management Provide new tool "bin/user approve" to approve an account. 2021-03-03 04:35:50 +00:00
markup Render user hovercards with context information about their ability to see the context object 2021-02-13 13:37:37 -08:00
menuitem Fix PHP 8.1 "strlen(null)" exceptions which block rendering the People page of a user 2023-05-01 22:03:41 +02:00
phid Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
policyrule Move some files around 2015-11-17 06:26:13 +11:00
query Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
search Reduce the amount of boilerplate that implementing FerretInterface requires 2017-09-07 13:23:31 -07:00
searchfield Add basic typechecking support to Conduit 2015-12-14 04:21:39 -08:00
storage Rename default SSH key name from Phabricator to Phorge 2023-04-27 09:29:05 +02:00
typeahead Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
userlog Record account recovery email links in the user activity log and make the mail message reference the log 2019-07-24 07:13:34 -07:00
view Fix PHP 8.1 substr(null) in People > Activity Logs 2023-07-17 14:23:30 +01:00
xaction Add serious business string for defrocking a user (remove admin rights) 2023-06-16 13:58:28 +02:00