/content/code/trunk/administrator/components/com_artofcontent/libraries/loader.php
PHP | 36 lines | 10 code | 4 blank | 22 comment | 1 complexity | b4ab272228c4ec4b824591b47674604b MD5 | raw file
- <?php
- /**
- * @version $Id: loader.php 484 2010-12-20 23:40:27Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofcontent
- * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License version 2 or later.
- * @link http://www.theartofjoomla.com
- * @author Andrew Eddie <andrew.eddie@newlifeinit.com>
- */
- // no direct access
- defined('_JEXEC') or die;
- /**
- * Replacement for jimport that falls back to jimport.
- *
- * @param string $path The library path.
- *
- * @return
- * @since 1.0
- * @author Sam Moffat
- */
- function juimport($path)
- {
- // Attempt to load the path locally but...
- // Unfortunately 1.5 doesn't check the file exists before including it so we mask it
- $res = JLoader::import($path, dirname(__FILE__));
- if (!$res) {
- // fall back when it doesn't work
- return jimport($path);
- }
- return $res;
- }