Skip to content

Commit

Permalink
Fix detecting the repository type.
Browse files Browse the repository at this point in the history
This got lost when merging from my private repo.
  • Loading branch information
mrubinsk committed May 10, 2017
1 parent 324c6ea commit cdb4851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/Pear/lib/Horde/Pear/Package/Type/HordeSplit.php
Expand Up @@ -36,11 +36,11 @@ class Horde_Pear_Package_Type_HordeSplit extends Horde_Pear_Package_Type_Horde
*/
public function getType()
{
$location = substr($this->getRootPath(), strlen($this->getRepositoryRoot()));
if (substr($location, 0, 10) == '/framework') {
return 'Component';
} else {
$dir = basename(dirname($this->getRootPath()));
if (basename(dirname($this->getRootPath())) == '/applications') {
return 'Application';
} else {
return 'Component';
}
}

Expand Down

0 comments on commit cdb4851

Please sign in to comment.