aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Item.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-23 11:52:11 +0000
committerMario <mario@mariovavti.com>2022-02-23 11:52:11 +0000
commita520063265459a6a02c7e39b64aa7fd83bc0b246 (patch)
treed7938d1626f51085568bc402564d6939034183ad /Zotlabs/Widget/Item.php
parent1e171a72a03bfff06888c275b4fc88286ae20c8f (diff)
downloadvolse-hubzilla-a520063265459a6a02c7e39b64aa7fd83bc0b246.tar.gz
volse-hubzilla-a520063265459a6a02c7e39b64aa7fd83bc0b246.tar.bz2
volse-hubzilla-a520063265459a6a02c7e39b64aa7fd83bc0b246.zip
widget descriptions and add content region to all pdl files for convenience
Diffstat (limited to 'Zotlabs/Widget/Item.php')
-rw-r--r--Zotlabs/Widget/Item.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Item.php b/Zotlabs/Widget/Item.php
index 273d5649c..9fd703dfe 100644
--- a/Zotlabs/Widget/Item.php
+++ b/Zotlabs/Widget/Item.php
@@ -1,5 +1,11 @@
<?php
+/**
+ * * Name: Item
+ * * Description: Display a webpage by title or mid,
+ * * Requires: channel, articles, cards, wiki
+ */
+
namespace Zotlabs\Widget;
require_once('include/security.php');
@@ -35,7 +41,7 @@ class Item {
);
}
else {
- $r = q("select * from item where mid = '%s' and uid = %d and item_type = "
+ $r = q("select * from item where mid = '%s' and uid = %d and item_type = "
. intval(ITEM_TYPE_WEBPAGE) . " $sql_extra limit 1",
dbesc($arr['mid']),
intval($channel_id)