Skip to content

Commit

Permalink
Merge pull request #28 from pmill/issue/25
Browse files Browse the repository at this point in the history
Issue/25
  • Loading branch information
pmill committed May 18, 2016
2 parents 37b9c71 + 7b56f4e commit d59f3b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Unversioned (13 Apr 2013)

* Updated ListSubscriptions to retrieve plan guids
* Updated GetServicePlan to accept 'guid' as a filter option
* Updated DeleteSiteAlias to accept 'alias' as a filter option

Copyright and License
---------------------
Expand Down
4 changes: 4 additions & 0 deletions src/pmill/Plesk/DeleteSiteAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public function __construct($config, $params = array())
$params['filter'] = new Node('name', $params['domain']);
}

if (isset($params['alias'])) {
$params['filter'] = new Node('name', $params['alias']);
}

if (isset($params['id'])) {
$params['filter'] = new Node('id', $params['id']);
}
Expand Down

0 comments on commit d59f3b2

Please sign in to comment.