<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

/**
 * Helper class used to set to the Joomla 6 platform.
 *
 * @since 1.11
 */
class VREJoomla60SetupHelper
{
	/**
	 * Since Joomla 6.0 some HTML helpers may not exist any longer.
	 * For this reason we should manually register them for backward compatibility.
	 *
	 * @return 	void
	 */
	public function registerHelpers()
	{
		if (!JHtml::isRegistered('formbehavior.chosen'))
		{
			// register formbehavior.chosen callback
			JHtml::register('formbehavior.chosen', function() {
				// do nothing here
			});
		}
	}
}
