/redirect/code/trunk/administrator/components/com_redirect/libraries/loader.php
PHP | 51 lines | 16 code | 5 blank | 30 comment | 2 complexity | c3759002d7c292a54844f5fd37d5297b MD5 | raw file
- <?php
- /**
- * @version $Id: loader.php 576 2011-02-25 05:03:45Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- * @copyright Copyright 2005 - 2011 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 <support@theartofjoomla.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;
- }
- if (!function_exists('jximport')) {
- /**
- * Proxy for juimport function.
- *
- * @param string $path The library path.
- *
- * @return
- * @since 1.0
- */
- function jximport($path)
- {
- return juimport($path);
- }
- }