echo Joomla\Filesystem\File:getExt('name.jpg');
to your code in Joomla 4.4Return jpg
in front-end
Call to undefined method Joomla\Filesystem\File:getExt()
Joomla 4.4.x
Labels |
Added:
No Code Attached Yet
|
Your method seems to be available in Joomla 5.
It would be nice if the method can be backported to be available on Joomla 4.4.x. But as I know, this is not possible with our policy.
So for the time being, I think you will need to use Joomla\CMS\Filesystem\File
as @toivo suggested and replace it with Joomla\Filesystem\File
when you can drop support for Joomla 4.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-25 06:55:39 |
Closed_By | ⇒ | alikon |
closing as per explanation given
The actual result is expected behaviour. Use Joomla\CMS\Filesystem\File instead.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42460.