Not at all and the new code can cause unpredictable issues. The original PHP works correctly, as long as the host has not blocked the native PHP function get_current_user().May That be a Joomla bug of php 8.2?
As @Kubik-Rubik pointed out,
The owner here is one of the users defined in the operating system, not the Joomla user logged in at the back end of Joomla.It is used in the Template component when a file is stored on the file system, and its owner is set to the owner of the currently executed PHP script to make it writable.
Statistics: Posted by toivo — Sun Aug 11, 2024 1:33 pm