Skip to content

Commit

Permalink
- Removed the custom handling for now
Browse files Browse the repository at this point in the history
- Made sure to have a good handling of api email and key

Signed-off-by: Joe Stump <joe@joestump.net>
  • Loading branch information
David Coallier authored and joestump committed Apr 28, 2009
1 parent 88de0d8 commit 2133d71
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Services/ShortURL/shortie.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ public function shorten($url)
$params = array(
'format' => 'xml',
'url' => $url,
'private' => isset($this->options['private'])
? $this->options['private']
: 'false',
'private' => isset($this->options['private']) ? 'true' : 'false',
);

// If the email and secret key is passed, use it.
Expand All @@ -60,11 +58,6 @@ public function shorten($url)
$params['secretKey'] = $this->options['secretKey'];
}

// If it's a custom url, use it.
if (isset($this->options['custom'])) {
$params['custom'] = $this->options['custom'];
}

$sets = array();
foreach ($params as $key => $val) {
$sets[] = $key . '=' . $val;
Expand Down

0 comments on commit 2133d71

Please sign in to comment.