<?php
/**
 * Element Include: VersionCheck
 * Methods to check if current version is the latest
 *
 * @package         NoNumber Framework
 * @version         15.4.5
 *
 * @author          Peter van Westen <peter@nonumber.nl>
 * @link            http://www.nonumber.nl
 * @copyright       Copyright © 2015 NoNumber All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

defined('_JEXEC') or die;

/**
 * Version Check Class (Include file)
 * Is an old file, so for backward compatibility
 */
class NoNumberVersionCheck
{
	function setMessage($current_version = '0', $version_file = '')
	{
		require_once JPATH_PLUGINS . '/system/nnframework/helpers/versions.php';
		$versions = nnVersions::getInstance();

		echo $versions->getMessage(str_replace('version_', '', $version_file), '', $current_version);
	}
}
