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 /mod/page.php | |
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 'mod/page.php')
-rw-r--r-- | mod/page.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/page.php b/mod/page.php index 2d977fb7a..c37dc7d0b 100644 --- a/mod/page.php +++ b/mod/page.php @@ -64,7 +64,7 @@ function page_init(&$a) { intval($u[0]['channel_id']), dbesc($page_id), intval(ITEM_TYPE_WEBPAGE), - intval(ITEM_PDL) + intval(ITEM_TYPE_PDL) ); if(! $r) { @@ -87,7 +87,7 @@ function page_init(&$a) { return; } - if($r[0]['item_restrict'] == ITEM_PDL) { + if($r[0]['item_type'] == ITEM_TYPE_PDL) { require_once('include/comanche.php'); comanche_parser(get_app(),$r[0]['body']); get_app()->pdl = $r[0]['body']; @@ -118,8 +118,8 @@ function page_content(&$a) { if(! $r) return; - if($r[0]['item_restrict'] == ITEM_PDL) { - $r[0]['body'] = t('Ipsum Lorem'); + if($r[0]['item_type'] == ITEM_TYPE_PDL) { + $r[0]['body'] = t('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'); $r[0]['mimetype'] = 'text/plain'; $r[0]['title'] = ''; |