/googlemini/code/trunk/administrator/components/com_artofgm/libraries/loader.php
PHP | 51 lines | 16 code | 5 blank | 30 comment | 2 complexity | b25852bcdecbfc52f3153185cdffc531 MD5 | raw file
- <?php
- /**
- * @version $Id: loader.php 518 2011-01-07 06:36:43Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- * @copyright Copyright 2011 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License version 2 or later.
- * @link http://www.jentla.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;
- }
- if (!function_exists('jximport')) {
- /**
- * Proxy for juimport function.
- *
- * @param string $path The library path.
- *
- * @return
- * @since 1.0
- */
- function jximport($path)
- {
- return juimport($path);
- }
- }