aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2015-04-15 21:24:50 +0200
committermrjive <mrjive@mrjive.it>2015-04-15 21:24:50 +0200
commit2ba95e55a5323f55b5cf8789e86411a23013d2a6 (patch)
tree5fa657edf04dae0e487f0316f3910ea691453df4
parent324fd61d7f076b621bef356a1cf1af808ad03db4 (diff)
parentc8d131d8ce33219b1cfa00ed08692f6c79524003 (diff)
downloadvolse-hubzilla-2ba95e55a5323f55b5cf8789e86411a23013d2a6.tar.gz
volse-hubzilla-2ba95e55a5323f55b5cf8789e86411a23013d2a6.tar.bz2
volse-hubzilla-2ba95e55a5323f55b5cf8789e86411a23013d2a6.zip
Merge pull request #313 from mrjive/master
Added the Item ID in the source view
-rw-r--r--mod/viewsrc.php3
1 files changed, 2 insertions, 1 deletions
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 '<div><i class="icon-pencil"> ' . t('Source of Item') . ' ' . $r[0]['id'] . '</i></div>';
echo $o;
killme();
}