CoreFiles by mySites.guru
PostinstallHelper.php43 lines, 878 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
2b65720353323d3a6dc036a9f77ff04a
sha1
a5537501d92a875215d8446f9bb01f7c08522403
sha256
623c20481aead04c6fb9817ff2df22b89293a870d9910d50cc062772a720ab8d
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_postinstall
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Postinstall\Administrator\Helper;

defined('_JEXEC') or die;

/**
 * Helper class for postinstall messages
 *
 * @since  3.6
 */
class PostinstallHelper
{
	/**
	 * Method for parsing ini files.
	 *
	 * @param   string  $path  Fancy path.
	 *
	 * @return  string  Parsed path.
	 *
	 * @since   3.6
	 */
	public function parsePath($path)
	{
		if (strpos($path, 'site://') !== false)
		{
			$path = JPATH_ROOT . str_replace('site://', '/', $path);
		}
		elseif (strpos($path, 'admin://') !== false)
		{
			$path = JPATH_ADMINISTRATOR . str_replace('admin://', '/', $path);
		}

		return $path;
	}
}

No other release has this exact content. See every version of this file.