Ya lo comprimí en un archivo .zip para que puedas descargarlo, espero puedas ayudarme, igual lo escribo aquí.
Código PHP:
* @since 11.1
*/
public static function discover($classPrefix, $parentPath, $force = true)
{
// Ignore the operation if the folder doesn't exist.
if (is_dir($parentPath)) {
// Open the folder.
$d = dir($parentPath);
// Iterate through the folder contents to search for input classes.
while (false !== ($entry = $d->read()))
{
// Only load for php files.
if (file_exists($parentPath.'/'.$entry) && (substr($entry, strrpos($entry, '.') + 1) == 'php')) {
// Get the class name and full path for each file.
$class = strtolower($classPrefix.preg_replace('#\.[^.]*$#', '', $entry));
$path = $parentPath.'/'.$entry;
// Register the class with the autoloader if not already registered or the force flag is set.
if (empty(self::$_classes[$class]) || $force) {
JLoader::register($class, $path);
}