From 85f42f2f924c894bd9a7d1116a46c0661b4a71f6 Mon Sep 17 00:00:00 2001 From: Nilpferd Date: Sun, 21 May 2017 10:33:31 +0200 Subject: [PATCH] Shorturl are now shown for 'burn' pastes after creation --- htdocs/application/models/Pastes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/application/models/Pastes.php b/htdocs/application/models/Pastes.php index ab2f22d..62066ac 100644 --- a/htdocs/application/models/Pastes.php +++ b/htdocs/application/models/Pastes.php @@ -141,7 +141,11 @@ class Pastes extends CI_Model 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: ' . site_url('view/' . $data['pid']) . ''; + if ($data['snipurl'] !== false) + { + echo '
Shorturl: ' . $shorturl . '
'; + } exit; } else