aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Webpages.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-22 22:43:08 -0700
committerzotlabs <mike@macgirvin.com>2017-06-22 22:43:08 -0700
commit6c771f84cedc71e7ffeecebe3e2fd7f912de3e7b (patch)
treec5a83b14454014795cc078cbabf1d056a8c8d609 /Zotlabs/Module/Webpages.php
parent02b7bc08033b21ea5438aa667e8dbb1fd72022bb (diff)
downloadvolse-hubzilla-6c771f84cedc71e7ffeecebe3e2fd7f912de3e7b.tar.gz
volse-hubzilla-6c771f84cedc71e7ffeecebe3e2fd7f912de3e7b.tar.bz2
volse-hubzilla-6c771f84cedc71e7ffeecebe3e2fd7f912de3e7b.zip
remove unused page_widgets.php include and provide a general function for loading sql from file to use in the cdav migration
Diffstat (limited to 'Zotlabs/Module/Webpages.php')
-rw-r--r--Zotlabs/Module/Webpages.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/Zotlabs/Module/Webpages.php b/Zotlabs/Module/Webpages.php
index 641e84b70..d59fcdb9f 100644
--- a/Zotlabs/Module/Webpages.php
+++ b/Zotlabs/Module/Webpages.php
@@ -179,11 +179,8 @@ class Webpages extends \Zotlabs\Web\Controller {
// so just list titles and an edit link.
- /** @TODO - this should be replaced with pagelist_widget */
-
$sql_extra = item_permissions_sql($owner);
-
$r = q("select * from iconfig left join item on iconfig.iid = item.id
where item.uid = %d and iconfig.cat = 'system' and iconfig.k = 'WEBPAGE' and item_type = %d
$sql_extra order by item.created desc",
@@ -191,12 +188,6 @@ class Webpages extends \Zotlabs\Web\Controller {
intval(ITEM_TYPE_WEBPAGE)
);
-// $r = q("select * from item_id left join item on item_id.iid = item.id
-// where item_id.uid = %d and service = 'WEBPAGE' and item_type = %d $sql_extra order by item.created desc",
-// intval($owner),
-// intval(ITEM_TYPE_WEBPAGE)
-// );
-
if(! $r)
$x['pagetitle'] = 'home';