Feature #16253
closedtslib_fe::getStorageSiterootPids: get all storage-pids in whole rootline
0%
Description
Quite a number of extensions rely on the storage-pid in the page-header to find out where to take records from, e.g. TemplaVoila, all FE-logins, ldap_server etc.
This could cause a problem, e.g. when you have stored your FE-users on a different page for the sake of clarity. tslib_fe::getStorageSiterootPids only returns the first storage-pid found in the rootline, so if you have set the storage-pid of a page to the folder with FE-users, you can't access any objects in folders you have set as a storage-folder on the root-page of your site.
I extended getStorageSiterootPids to return two new items in the $res-array. One contains all storage-pids in the whole rootline and the other one only the storage-pids up to the root of the website. I have attached a patchfile with the changes.
(issue imported from #M3692)
Files