From a597c74b977c7cd844ebae642705baa27722f9e1 Mon Sep 17 00:00:00 2001 From: mrjive Date: Wed, 15 Apr 2015 12:26:03 +0200 Subject: Update viewsrc.php Adding the item ID to the item source view --- mod/viewsrc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/viewsrc.php b/mod/viewsrc.php index 983a0e725..3125ae4c0 100644 --- a/mod/viewsrc.php +++ b/mod/viewsrc.php @@ -21,7 +21,7 @@ function viewsrc_content(&$a) { } if(local_channel() && $item_id) { - $r = q("select item_flags, body from item where item_restrict = 0 and uid in (%d , %d) and id = %d limit 1", + $r = q("select item_flags, body, id from item where item_restrict = 0 and uid in (%d , %d) and id = %d limit 1", intval(local_channel()), intval($sys['channel_id']), intval($item_id) @@ -35,6 +35,7 @@ function viewsrc_content(&$a) { } if(is_ajax()) { + print '
' . t('Source of Item') . ' ' . $r[0]['id'] . '
'; echo $o; killme(); } -- cgit v1.2.3