Skip to content

Commit 02e1ed6

Browse files
authored
Create a class alias for the CMS input class (joomla#43209)
Thanks @laoneo
1 parent 2657bdd commit 02e1ed6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/behaviour/compat/src/classmap/classmap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,3 +514,6 @@
514514
JLoader::registerAlias('JHtmlTag', '\\Joomla\\CMS\\HTML\\Helpers\\Tag', '6.0');
515515
JLoader::registerAlias('JHtmlTel', '\\Joomla\\CMS\\HTML\\Helpers\\Telephone', '6.0');
516516
JLoader::registerAlias('JHtmlUser', '\\Joomla\\CMS\\HTML\\Helpers\\User', '6.0');
517+
518+
// As JLoader is not managing the \Joomla\Input namespace, we need to use the native class alias function
519+
class_alias('\\Joomla\\Input\\Input', '\\Joomla\\CMS\\Input\\Input');

0 commit comments

Comments
 (0)