diff --git a/code/site/libraries/resource.php b/code/site/libraries/resource.php index d6659cc..68e662f 100755 --- a/code/site/libraries/resource.php +++ b/code/site/libraries/resource.php @@ -88,6 +88,10 @@ final public static function addIncludePath( $path=null ) { // no surrounding spaces allowed! $dir = trim($dir); + //Added to check if version exists and append version directory ++ $version = JFactory::getApplication()->input->get('version', 0); ++ if ($version > 0 && JFolder::exists($dir.'/'.$version)) ++ $dir=$dir.'/'.$version; // add to the top of the search dirs // so that custom paths are searched before core paths