PR-6.2-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
25 Apr 2026

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

The SiteApplication, AdministratorApplication, and ApiApplication all called $this->loadDocument() without passing $document argument, causing an internal fallback to the deprecated method Factory::getDocument() call.

This PR introduces createDocument() method on CMSApplication to create document object which bring the following improvements:

  • Use dependencies (language, document factory) which are necessary to create document directly from the application rather than the static Factory.
  • Avoid calling deprecated method Factory::getDocument() which was planned to remove in Joomla 7
  • Consistent with how language is created and injected into application

Testing Instructions

  • Use Joomla 6.2 (Joomla 6.1 is also OK)
  • Apply patch, and access to random pages from frontend and backend of your site. If you are familiar with web services, try to execute a request with web service, too

Actual result BEFORE applying this Pull Request

Works. But use deprecated code for creating document object for application

Expected result AFTER applying this Pull Request

Works without using deprecated code for creating document object for application

Link to documentations

Please select:

  • No documentation changes for guide.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar joomdonation joomdonation - open - 25 Apr 2026
avatar joomdonation joomdonation - change - 25 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2026
Category Libraries
avatar joomdonation joomdonation - change - 25 Apr 2026
Labels Added: PR-6.2-dev

Add a Comment

Login with GitHub to post a comment