Merge pull request #418 from Nilpferd/master

Shorturl are now shown for 'burn' pastes after creation
This commit is contained in:
Claude 2017-05-21 12:07:34 +02:00 committed by GitHub
commit bd34454758

View File

@ -141,7 +141,11 @@ class Pastes extends CI_Model
if ($burn) if ($burn)
{ {
echo 'copy this URL, it will become invalid on visit: ' . site_url('view/' . $data['pid']); echo 'copy this URL, it will become invalid on visit: <a href="' . site_url('view/' . $data['pid']) . '">' . site_url('view/' . $data['pid']) . '</a>';
if ($data['snipurl'] !== false)
{
echo '<br>Shorturl: <a href="' . $shorturl . '">' . $shorturl . '</a><br>';
}
exit; exit;
} }
else else