Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Fixing up an autoloader issue with multiple loaders.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisLandry committed Jan 6, 2012
1 parent 6d3ad50 commit 53bd832
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ public static function setup()
*/
private static function _autoload($class)
{
// Only attempt to autoload if the class does not already exist.
if (class_exists($class))
{
return;
}

// Only attempt autoloading if we are dealing with a Joomla Platform class.
if ($class[0] == 'J')
{
Expand Down

0 comments on commit 53bd832

Please sign in to comment.