Select your language

Lessons learned

  • Don't try to support version 3 and 4!

MIgrations

Replace JText with Text

OLD NEW
JText::_('LANGUAGE_KEY'); use Joomla\CMS\Language\Text;
Text::_($key);

Get current URL

OLD NEW
$curi = JFactory::getURI();
$uri = JURI::getInstance( $curi->toString() );
use Joomla\CMS\Uri\Uri;
$uri = Uri::getInstance();
$url = $uri->toString();

Text encoding

OLD NEW
$content = iconv($encoding, $dbEncodeing."//TRANSLIT", $content); $content = mb_convert_encoding($content, $encoding, $dbEncodeing);

Database statement execution

OLD NEW
$db->query(); $db->execute();

Javascript submitform

OLD NEW
submitform() Joomla.submitform()

 

© 2024 Sevérina & Norbert Kümin

Disclaimer (german only)