/pdf/code/trunk/administrator/components/com_artofpdf/libraries/loader.php
PHP | 36 lines | 10 code | 4 blank | 22 comment | 1 complexity | 528f633c6b3878acca5446b5bc72d514 MD5 | raw file
- <?php
- /**
- * @version $Id: loader.php 278 2010-09-14 11:11:09Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_artofpdf
- * @copyright Copyright 2010 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;
- }