Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • 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.

This change was created with the help of AI (Claude Code).

Summary of Changes

Module\Weblinks\Site\Helper\WeblinksHelper:

  • gets the database with $model->getDbo(), which is deprecated since 4.3 and will be removed in 7.0. (getDatabase() of the model is protected, so it can't be used instead.) The helper now implements DatabaseAwareInterface; the module HelperFactory injects the database automatically. The deprecated static getList() sets the database itself, so it keeps working.
  • boots the component via Factory::getApplication() in getWeblinks() and getCategoryTree(), although the application is passed in as $app; it now uses $app.

Testing Instructions

Create a Weblinks module, with and without Group by category / subcategories, and view it on the frontend.

Expected result

The module lists the weblinks as before; no deprecation entry for getDbo().

Actual result

Same, plus use of the deprecated getDbo().

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment