diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-21 22:17:17 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-21 22:17:17 -0700 |
commit | 5795e2a58bb4a0702a3d318ec6ac05681d6e5864 (patch) | |
tree | b416235fa275f7cb036c31737be5fb224a75a87c /include | |
parent | 25bd332aab20662e55824031dfd19dff23e248f8 (diff) | |
download | volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.gz volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.bz2 volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.zip |
more migration of page types
Diffstat (limited to 'include')
-rw-r--r-- | include/comanche.php | 2 | ||||
-rw-r--r-- | include/widgets.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/comanche.php b/include/comanche.php index 93cbd8b12..dfe907f4d 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -5,7 +5,7 @@ require_once('include/menu.php'); require_once('include/widgets.php'); // When editing a webpage - a dropdown is needed to select a page layout -// On submit, the pdl_select value (which is the mid of an item with item_restrict = ITEM_PDL) is stored in +// On submit, the pdl_select value (which is the mid of an item with item_type = ITEM_TYPE_PDL) is stored in // the webpage's resource_id, with resource_type 'pdl'. // Then when displaying a webpage, we can see if it has a pdl attached. If not we'll diff --git a/include/widgets.php b/include/widgets.php index 5a61ea639..86f65cdee 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -902,10 +902,10 @@ function widget_random_block($arr) { $r = q("select item.* from item left join item_id on item.id = item_id.iid where item.uid = %d and sid like '%s' and service = 'BUILDBLOCK' and - item_restrict = %d $sql_options order by $randfunc limit 1", + item_type = %d $sql_options order by $randfunc limit 1", intval($channel_id), dbesc('%' . $contains . '%'), - intval(ITEM_BUILDBLOCK) + intval(ITEM_TYPE_BUILDBLOCK) ); if($r) { |