? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
6 Oct 2020

Summary of Changes

When an error occurs we get an error page, it has a useless error code 0 most of the time.

This PR only shows the error code if its greater than 0

Testing Instructions

Generate an error
URL http://example.com/administrator/index.php?option=com_media&task=file.edit&id=0 will currently do that for you ;-)

Actual result BEFORE applying this Pull Request

Screenshot 2020-10-06 at 23 13 09

Expected result AFTER applying this Pull Request

Screenshot 2020-10-06 at 23 18 52

Documentation Changes Required

avatar PhilETaylor PhilETaylor - open - 6 Oct 2020
avatar PhilETaylor PhilETaylor - change - 6 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2020
Category Administration Templates (admin)
avatar brianteeman
brianteeman - comment - 6 Oct 2020

Looks good but shouldnt it be applied everywhere?

avatar PhilETaylor PhilETaylor - change - 6 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2020
Category Administration Templates (admin) Administration Templates (admin) Installation Front End Templates (site)
avatar ReLater
ReLater - comment - 6 Oct 2020

Error code 0 is a valid error code in most programming languages. I won't remove it just because it's 0. And more PHP lines in code just for these comparisons.

avatar PhilETaylor PhilETaylor - change - 6 Oct 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-10-06 23:12:44
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 6 Oct 2020

Add a Comment

Login with GitHub to post a comment