Skip to content

Commit

Permalink
Merge pull request #41 from robotpony/dsl-merge
Browse files Browse the repository at this point in the history
Dsl merge
  • Loading branch information
Bruce Alderson committed Mar 12, 2013
2 parents f9c6e4f + 42e06b6 commit 3d923c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function delegate($ctx, $data = null) {
if (empty($this->delegates) || empty($ctx) || empty($ctx->params))
throw new Exception('Unserviceable internal delegation attempt.', 501);

$path = implode('/', array_slice($ctx->params, 1));
$path = implode('/', $ctx->params);
foreach ($this->delegates as $p => $d) {
if (preg_match($p, $path)) {
if (empty($data)) return $this->$d($ctx);
Expand Down

0 comments on commit 3d923c6

Please sign in to comment.