load('lib_fof40', JPATH_SITE, 'en-GB', true); JoomlaFactory::getLanguage()->load('lib_fof40', JPATH_SITE, null, true); // Register a debug log if (defined('JDEBUG') && JDEBUG && class_exists('\Joomla\CMS\Log\Log')) { Log::addLogger(array('text_file' => 'fof.log.php'), Log::ALL, array('fof')); } }