Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/includefile'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Rombauts committed May 4, 2015
2 parents 9093ef3 + 53333fe commit 3b34a59
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Nooku/Composer/Installer/JoomlaExtension.php
Expand Up @@ -286,12 +286,15 @@ public function __destruct()

/**
* Workaround for Joomla 3.4+
*
*
* Fix Fatal error: Call to undefined function Composer\Autoload\includeFile() in /libraries/ClassLoader.php on line 43
*/
namespace Composer\Autoload;

function includeFile($file)
if( !function_exists('Composer\Autoload\includeFile') )
{
include $file;
}
function includeFile($file)
{
include $file;
}
}

0 comments on commit 3b34a59

Please sign in to comment.