Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix #377
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 14, 2013
1 parent 9d8c61d commit 5341414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/plugins/shorten.multi/class.multiShortener.php
Expand Up @@ -18,6 +18,7 @@ public function postProcess($action, $httpVars, $params)
$type = $this->getFilteredOption("SHORTEN_TYPE");
if(empty($type)) return;
$jsonData = json_decode($params["ob_output"], true);
$elementId = "";
if ($jsonData != false) {
$url = $jsonData["publiclet_link"] ;
$elementId = $jsonData["element_id"];
Expand Down Expand Up @@ -148,7 +149,7 @@ public function postProcess($action, $httpVars, $params)
$shorturl = http_build_url($purl);
}
print($shorturl);
$this->updateMetaShort($httpVars["file"], $shorturl);
$this->updateMetaShort($httpVars["file"], $elementId, $shorturl);
} else {
print($url);
}
Expand Down

0 comments on commit 5341414

Please sign in to comment.