/contentmanager/code/trunk/administrator/components/com_contentmanager/libraries/jxtended.php
PHP | 33 lines | 14 code | 4 blank | 15 comment | 3 complexity | 4df34df1549585fb83d95f91a264ca9a MD5 | raw file
- <?php
- /**
- * @version $Id: jxtended.php 160 2009-07-09 00:06:09Z eddieajau $
- * @package JXtended.Libraries
- * @subpackage plgSystemJXtended
- * @copyright Copyright (C) 2008 - 2009 JXtended, LLC. All rights reserved.
- * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
- * @link http://jxtended.com
- */
- defined('JPATH_BASE') or die;
- /**
- * JXtended intelligent file importer.
- *
- * @param string $path A dot syntax path.
- * @return boolean True on success
- * @since 1.0
- */
- function jximport2($path)
- {
- static $base;
- if (!$base) {
- $base = realpath(dirname(__FILE__));
- }
- if (strpos($path, 'jxtended') === 0) {
- return JLoader::import($path, $base, '');
- } else {
- return JLoader::import($path, null, 'libraries.');
- }
- }