Issue Feature Closed

#23526Call the list module through the dispatcher instead directly

Helmut Hummel 09/11/10, 16:27 updated 03/29/11, 17:44

Description

Branches: trunk

Problem:
Many core backend modules have their own “index” script and are accessed by calling this script directly. However since some time now a module dispatcher was introduced (mod.php) which does some basic initialisation and after that includes the module code. By having a central entry and exit point for modules it would be much easier to change the initialisation and perform cleanups at one place instead of doing it in several places.

Solution:
Use the dispatcher for the list module and change all links to it accordingly.

How to test:
Apply the patch and check if all list module stuff works like before, but the script link should now always be mod.php?M=web_list

Notes:
Since the list module moved to sysext in the current trunk and backards compatibility is already maintained by redirecting to the right location, there’s no need to add a fallback in the current script.

While searching and replacing the old links to db_list.php, I replaced all of them with a call to the already present API call to t3lib_extMgm::createListViewLink(). So future changes to the location would be much easier. To achieve that I needed to do some minor modifications to that API function, still keeping the backwards compatibility for it.

(issue imported from #M15686)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.