Skip to content

Commit

Permalink
Add support for the second argument of JLoader::import() to jimport()
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Oct 24, 2015
1 parent 00fd48e commit 8e3eb6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,12 +627,13 @@ function jexit($message = 0)
* Intelligent file importer.
*
* @param string $path A dot syntax path.
* @param string $base Search this directory for the class.
*
* @return boolean True on success.
*
* @since 11.1
*/
function jimport($path)
function jimport($path, $base = null)
{
return JLoader::import($path);
return JLoader::import($path, $base);
}

0 comments on commit 8e3eb6e

Please sign in to comment.