the-art-of-joomla-archive /pdf/code/trunk/administrator/components/com_artofpdf/libraries/loader.php

Language PHP Lines 36
MD5 Hash 528f633c6b3878acca5446b5bc72d514 Estimated Cost $170 (why?)
Repository https://bitbucket.org/eddieajau/the-art-of-joomla-archive View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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;
}
Back to Top